IMVBlobCounter4
The IMVBlobCounter4 interface contains methods and properties to configure the hu invariant range of the MV Blob Counter DirectShow Filter and to get the current blob contour from the filter.
Methods:
| GetContour | Return the current contour |
| GetContourPoint | Get the position of a contour point |
| GetContourPointCount | Count of current contour points. |
| GetMaxHueInvariant | Get the maximum hue invariant at index MV_HU_INDEX. |
| GetMinHueInvariant | Get the minimum hue invariant at index MV_HU_INDEX. |
| SetMaxHueInvariant | Set the maximum hue invariant at index MV_HU_INDEX. |
| SetMinHueInvariant | Set the minimum hue invariant at index MV_HU_INDEX. |
Header file: IMVBlobCounter.h
Interface definition language file: IMVBlobCounter.idl
Typelib: MVBlobCounter
Interface ID: IID_IMVBlobCounter4
Method IMVBlobCounter4::GetContour
Declaration: Sub GetContour(Blob As Long, Contour As _MV_POINT, Max As Long, Count As Long)Return the current contour
Parameter:
C Prototype:
Blob - Contour - Max - Count - HRESULT GetContour(LONG Blob, _MV_POINT Contour, LONG Max, LONG Count);
Method IMVBlobCounter4::GetContourPoint
Declaration: Sub GetContourPoint(Blob As Long, Point As Long, X As Long, Y As Long)Get the position of a contour point
Parameter:
C Prototype:
Blob - Point - X - Y - HRESULT GetContourPoint(LONG Blob, LONG Point, LONG X, LONG Y);
Method IMVBlobCounter4::GetContourPointCount
Declaration: Function GetContourPointCount(Blob As Long) As LongCount of current contour points.
Parameter:
C Prototype:
Blob - HRESULT GetContourPointCount(LONG Blob, LONG* value);
Method IMVBlobCounter4::GetMaxHueInvariant
Declaration: Function GetMaxHueInvariant(Index As Long) As DoubleGet the maximum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
Index - HRESULT GetMaxHueInvariant(LONG Index, DOUBLE* value);
Method IMVBlobCounter4::GetMinHueInvariant
Declaration: Function GetMinHueInvariant(Index As Long) As DoubleGet the minimum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
Index - HRESULT GetMinHueInvariant(LONG Index, DOUBLE* value);
Method IMVBlobCounter4::SetMaxHueInvariant
Declaration: Sub SetMaxHueInvariant(Index As Long, value As Double)Set the maximum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
Index - value - HRESULT SetMaxHueInvariant(LONG Index, DOUBLE value);
Method IMVBlobCounter4::SetMinHueInvariant
Declaration: Sub SetMinHueInvariant(Index As Long, value As Double)Set the minimum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
Index - value - HRESULT SetMinHueInvariant(LONG Index, DOUBLE value);
Enumerations:
typedef enum _MV_HU_INDEX
{
MV_HU_1 = 0,
MV_HU_2 = 1,
MV_HU_3 = 2,
MV_HU_4 = 3,
MV_HU_5 = 4,
MV_HU_6 = 5,
MV_HU_7 = 6
}MV_HU_INDEX;