6 Replies Latest reply on Dec 7, 2017 12:41 AM by noamz

    Getting (x,y) coordinates from a 2D image




      I have an application that is based on Intel's Face Tracking sample of SDK

      My goal is to get (x,y) coordinate of a specific pixel in an image.

      When I am in 3D mode, and apply QueryVertices() on sample->depth it is working well, and I get the pixel coordinate from vertices array.

      However, when in 2D mode, although I have sample->depth, when I apply QueryVertices() on it I get a vertices array that is full of "garbage".


      1. Why isn't the QueryVertices() working on the sample->depth image I am getting when I am in 2D mode?

      2. Is there a way to get a valid vertices array from a color image?


      Thank you,