VGetCameraXYU Method
Description
Retrieves camera X, Y, and U physical coordinates for any object.
Syntax
Sub VGetCameraXYU (Sequence As String, Object As String, Result As Integer,
ByRef Found As Boolean, ByRef X As Single, ByRef Y As Single, ByRef U As Single)
Parameters
- Sequence
A string expression indicating the vision sequence name for the current project. - Object
A string expression indicating the object name for the sequence. - Result
An integer expression indicating the result number. - Found
A Boolean variable indicating whether the object was found. - X
A real number variable indicating the X coordinate in millimeters. - Y
A real number variable indicating the Y coordinate in millimeters. - U
A real number variable indicating the angle in degrees.
See Also
VGetPixelXYU Method, VGetRobotXYU Method
VGetCameraXYU Example
VB Example:
Dim found As Boolean
Dim x As Single, y As Single, u As Single
Dim seq As String, blob As String
seq = "testSeq"
blob = "blob01"
m_spel.VRun(seq)
m_spel.VGetCameraXYU(seq, blob, 1, found, x, y, u)
C# Example:
bool found;
float x, y, u;
string seq, blob;
seq = "testSeq";
blob = "blob01";
m_spel.VRun(seq);
m_spel.VGetCameraXYU(seq, blob, 1, out found, out x, out y, out u);