DepthSpacePoint Structure

Represents pixel coordinates within a depth image.

Syntax

public value struct DepthSpacePoint
public struct DepthSpacePoint
var depthSpacePoint = {
      x : /* Your value */, 
      y : /* Your value */
}     

Members

DepthSpacePoint has the following members.

Fields

Name Description
X The X coordinate of the point, in pixels.
Y The Y coordinate of the point, in pixels.

Remarks

Depth space is the term used to describe a 2D location on the depth image. Think of this as a row/column location of a pixel where x is the column and y is the row. So x=0, y=0 corresponds to the top left corner of the image and x=511, y=423 (width-1, height-1) is the bottom right corner of the image. In some cases, a z value is needed in order to map out of depth space. For these cases, simply sample the depth image at the row/column in question, and use that value (which is depth in millimeters) directly as z.

Requirements

Namespace: WindowsPreview.Kinect

Metadata: windowspreview.kinect.winmd

See also

Reference

WindowsPreview.Kinect Namespace