|
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:
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:
|
|
Blob |
- |
|
|
Contour |
- |
|
|
Max |
- |
|
|
Count |
- |
C Prototype:
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:
HRESULT GetContourPoint(LONG Blob, LONG
Point, LONG X, LONG Y);
Method
IMVBlobCounter4::GetContourPointCount
Declaration:
Function GetContourPointCount(Blob As Long) As Long
Count of current contour points.
Parameter:
C Prototype:
HRESULT GetContourPointCount(LONG Blob,
LONG* value);
Method
IMVBlobCounter4::GetMaxHueInvariant
Declaration:
Function GetMaxHueInvariant(Index As Long) As Double
Get the maximum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
HRESULT GetMaxHueInvariant(LONG Index,
DOUBLE* value);
Method
IMVBlobCounter4::GetMinHueInvariant
Declaration:
Function GetMinHueInvariant(Index As Long) As Double
Get the minimum hue invariant at index MV_HU_INDEX.
Parameter:
C Prototype:
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:
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:
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;
|