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 LongSet 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 BooleanDraw motion direction arrow.
C Prototype:HRESULT put_DrawDirection(VARIANT_BOOL newVal);
HRESULT get_DrawDirection(VARIANT_BOOL* pVal);
Method IMVMotionDirection::GetMotion
Declaration: Function GetMotion As BooleanReturns 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 DoubleReturns 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 LongMinimum pixel luminance difference.
C Prototype:HRESULT put_MinLumaDiff(LONG newVal);
HRESULT get_MinLumaDiff(LONG* pVal);
Property IMVMotionDirection::MinNumOfPixel
Declaration: Property Get/Put MinNumOfPixel As DoubleMinimum 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 LongSet 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 LongNumber 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 BooleanShow motion areas.
C Prototype:HRESULT put_ShowMotionAreas(VARIANT_BOOL newVal);
HRESULT get_ShowMotionAreas(VARIANT_BOOL* pVal);