VGetExtrema Method
Description
Retrieves extrema coordinates of a blob object.
Syntax
Sub VGetExtrema (Sequence As String, Object As String, Result As Integer, ByRef MinX As Single, ByRef MaxX As Single, ByRef MinY As Single, ByRef MaxY 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. - MinX
A real number variable indicating the minimum X coordinate in pixels. - MaxX
A real number variable indicating the maximum X coordinate in pixels. - MinY
A real number variable indicating the minimum Y coordinate in pixels. - MaxY
A real number variable indicating the maximum Y coordinate in pixels.
See Also
VGet Method
VGetExtrema Example
VB Example:
Dim xmin As Single, xmax As Single
Dim ymin As Single, ymax As Single
Dim seq As String, blob As String
seq = "testSeq"
blob = "blob01"
m_spel.VRun(seq)
m_spel.VGet(seq, blob, "found", found)
If found <> 0 Then
m_spel.VGetExtrema(seq, blob, xmin, xmax, ymin, ymax)
End If
C# Example:
float xMin, xMax, yMin, yMax;
bool found;
string seq, blob;
seq = "testSeq";
blob = "blob01";
m_spel.VRun(seq);
m_spel.VGet(seq, blob, "found", found);
if(found == true)
m_spel.VGetExtrema(seq, blob,out xMin,out xMax,out yMin,
out yMax);