PixelToCamera Result

Runtime Only

Applies To
Vision Calibration

Description
Returns the CameraX, CameraY and Angle position coordinates in the camera coordinate frame.

Usage

VGet  Calibration.PixelToCamera, xValue, yValue, uValue, xVar, yVar, uVar
Calibration
Name of a calibration or string variable containing a calibration name.
xValue
Real variable representing the X pixel coordinate position.
yValue
Real variable representing the Y pixel coordinate position.
uValue
Real variable representing the angle with respect to the image coordinate system.
xVar
Real variable representing the X coordinate position.
yVar
Real variable representing the Y coordinate position.
uVar
Real variable that will contain the angular position (rotation) with respect to the camera coordinate system.

Values

  • xValue: Real number in pixels
  • yValue: Real number in pixels
  • uValue: Real number in degrees
  • xVar: Real variable representing: X coordinate position in millimeters
  • yVar: Real variable representing Y coordinate position in millimeters
  • uVar: Real variable representing angle in degrees

Remarks
The xVar and yVar values are returned in millimeters since the Camera Coordinate Frame is calibrated in millimeters. The uVar value is returned in degrees.

It should be noted that the PixelToCamera result can only be calculated for vision calibrations which have been calibrated. If not calibrated then the PixelToCamera result cause an error to occur.

See Also
CameraX Result, CameraY Result, CameraXYU Result