VGetPixelXYU Method
Description
Retrieves pixel X, Y, and U coordinates for any object.
Syntax
Sub VGetPixelXYU (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 expression indicating whether the object was found. - X
A real number variable indicating the X coordinate in pixels. - Y
A real number variable indicating the Y coordinate in pixels. - U
A real number variable indicating the angle in degrees.
See Also
VGetCameraXYU Method, VGetRobotXYU Method
VGetPixelXYU Example
VB Example:
Dim found As Integer
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.VGetPixelXYU(seq, blob, 1, found, x, y, u)
C# Example:
int found;
float x, y, u;
string seq, blob;
seq = "testSeq";
blob = "blob01";
m_spel.VRun(seq);
m_spel.VGetPixelXYU(seq, blob,1, out found, out x, out y, out u);