IMVMotionDirection

IMVMotionDirection Interface.

The IMVMotionDirection interface contains methods and properties to configure the MV Motion Direction filter.


Methods:

DrawColor Set color for drawing the direction arrow.
DrawDirection Draw motion direction arrow.
GetMotion Get the motion detection flag.
GetMotionDirection Get the motion direction.
MinLumaDiff Minimum pixel luminance difference.
MinNumOfPixel Minimum number of changed pixels in percent.
MotionColor Set color for motion areas.
NumOfFrames Minimum pixel luminance difference.
ShowMotionAreas Show motion areas.

 

Header file: IMVMotionDirection.h
Interface definition language file: IMVMotionDirection.idl
Typelib: MVMotionDirection
Interface ID: IID_IMVMotionDirection

 

Property IMVMotionDirection::DrawColor

Declaration: Property Get/Put DrawColor As Long

Set color for drawing the direction arrow.

C Prototype:

HRESULT put_DrawColor(LONG newVal);
HRESULT get_DrawColor(LONG* pVal);


Property IMVMotionDirection::DrawDirection

Declaration: Property Get/Put DrawDirection As Boolean

Draw motion direction arrow.

C Prototype:

HRESULT put_DrawDirection(VARIANT_BOOL newVal);
HRESULT get_DrawDirection(VARIANT_BOOL* pVal);


Method IMVMotionDirection::GetMotion

Declaration: Function GetMotion As Boolean

Returns the motion detection flag for the current frame, TRUE if motion was detected and FALSE otherwise.

C Prototype:

HRESULT GetMotion(VARIANT_BOOL* value);


Method IMVMotionDirection::GetMotionDirection

Declaration: Function GetMotionDirection As Double

Returns the direction of the motion in degrees (0 to 360). 0° is equivalent to the 3 o'clock position.

C Prototype:

HRESULT GetMotionDirection(DOUBLE* value);


Property IMVMotionDirection::MinLumaDiff

Declaration: Property Get/Put MinLumaDiff As Long

Minimum pixel luminance difference.

C Prototype:

HRESULT put_MinLumaDiff(LONG newVal);
HRESULT get_MinLumaDiff(LONG* pVal);


Property IMVMotionDirection::MinNumOfPixel

Declaration: Property Get/Put MinNumOfPixel As Double

Minimum number of changed pixels in percent.

C Prototype:

HRESULT put_MinNumOfPixel(DOUBLE newVal);
HRESULT get_MinNumOfPixel(DOUBLE* pVal);


Property IMVMotionDirection::MotionColor

Declaration: Property Get/Put MotionColor As Long

Set color for motion areas.

C Prototype:

HRESULT put_MotionColor(LONG newVal);
HRESULT get_MotionColor(LONG* pVal);


Property IMVMotionDirection::NumOfFrames

Declaration: Property Get/Put NumOfFrames As Long

Number of successive frames used for motion detection.

C Prototype:

HRESULT put_NumOfFrames(LONG newVal);
HRESULT get_NumOfFrames(LONG* pVal);


Property IMVMotionDirection::ShowMotionAreas

Declaration: Property Get/Put ShowMotionAreas As Boolean

Show motion areas.

C Prototype:

HRESULT put_ShowMotionAreas(VARIANT_BOOL newVal);
HRESULT get_ShowMotionAreas(VARIANT_BOOL* pVal);