Pixel coordinates to world

Pixel coordinates to world

Projects pixel coordinates to world coordinates.

Inputs

image
Input image
points
A matrix of points or coordinate frames in pixel coordinates. The shape of the matrix can be one of two possible formats:
  • N-by-2. A list of N pixel coordinates.
  • 4*N-by-4. A list of N 4-by-4 coordinate frames.
  • outputType
    Type of points output. Either a point vector or a frame.

    Outputs

    points
    A matrix of points or coordinate frames in world coordinates. The type is determined by outputType.

    Type of the points output.

    Enumerator
    Points 

    A list of N world coordinates on world XY plane.

    Frames 

    A list of N 4-by-4 coordinate frames. The translation of the output frame is the position of the input pixel converted to world coordinates. The X- and Y-axes of the output frame are the normalized directions of the X- and Y-axes of the input frame projected to world coordinates.