VGetPixelToCamera Method
Description
Retrieves the camera coordinates for the specified pixel coordinates.
Syntax
Sub VGetPixelToCamera (Calibration As String, PixelX As Single, PixelY As Single, Angle As Single, ByRef CameraX As Single, ByRef CameraY As Single, ByRef CameraU As Single)
Parameters
- Calibration
A string expression indicating the calibration name for the current project. - PixelX
A real number variable indicating the X coordinate in pixels. - PixelY
A real number variable indicating the Y coordinate in pixels. - Angle
A real number variable indicating the angle in degrees. - CameraX
A real number variable indicating the X coordinate in millimeters. - CameraY
A real number variable indicating the Y coordinate in millimeters. - CameraU
A real number variable indicating the angle in degrees.
See Also
VGetPixelXYU Method, VGetCameraXYU Method, VGetPixelToRobot Method
VGetPixelToCamera Example
VB Example:
Dim x As Single, y As Single, u As Single
Dim cal As String, seq As String
cal = "testCal"
seq = "testSeq"
m_spel.VRun(seq)
m_spel.VGetPixelToCamera(cal, 400, 300, 0, x, y, u)
C# Example:
float x, y, u
string cal, seq;
cal = "testCal";
seq = "testSeq";
m_spel.VRun(seq);
m_spel.VGetPixelToCamera(cal, 400, 300, 0, out x, out y, out u);