Convert Position To Depth Pixel Coordinates


Description:

This function accepts a position and returns the relative pixel coordinates of the Depth Stream corresponding with that point in the world in front of the Kinect. These pixel coordinates can be used to manipulate the texture reference from a Depth Camera supplied by Get Camera Frame

Inputs:

  • Target [KinectInterfaceComponent]: The Unreal Engine/Kinect interface object.
  • Position [Vector]: The 3d point in space, measured in centimetres relative to the Kinect, which should be matched to a pixel coordinate on the Depth Stream image.

Outputs:

  • Input Is Valid [Boolean]: Returns true if the input position matches a valid coordinate within the bounds of the Depth image, otherwise returns false.
  • Return Value [Vector2D]: The Pixel co-ordinates (x, y) of the depth image which align to the given 3D position. Recall that in this co-ordinate system, (0, 0) lies on the top left hand side of the image.