IMVAdvancedOpticalFlow2
IMVAdvancedOpticalFlow2 Interface.
The IMVAdvancedOpticalFlow2 interface gains access to the feature points used by the MV AdvancedOpticalFlow filter.
Methods:
| SlectedNewFeatures | 'New Features selected' flag. |
| GetNumOfFeatures | Get the number of feature points. |
| GetFeaturePoint | Get X and Y position of a feature point. |
Header file: IMVAdvancedOpticalFlow.h
Interface definition language file:
IMVAdvancedOpticalFlow.idl
Typelib: MVAdvancedOpticalFlow
Interface ID: IID_IMVAdvancedOpticalFlow2
Method IMVAdvancedOpticalFlow2::SlectedNewFeatures
Declaration: Method SelectNewFeatures As BooleanVARIANT_TRUE if new features have been chosen for the last processed frame, VARIANT_FALSE if the old features were searched in the new frame.
C Prototype:HRESULT SelectedNewFeatures(VARIANT_BOOL* pbFlag);
Method IMVAdvancedOpticalFlow2::GetNumOfFeatures
Declaration: Method GetNumOfFeatures As Long
Returns the number of features used for tracking in the last processed frame. C Prototype:
HRESULT GetNumOfFeatures(int* piNum);
Method IMVAdvancedOpticalFlow2::GetFeaturePoint
Declaration: Sub GetFeaturePoint( iIndex As Long, dXPosition As Double, dYPosition As Double)Returns X and Y positions of the feature point for the given feature array index.
C Prototype:HRESULT GetFeaturePoint(int iIndex, double *pdXPosition, double *pdYPosition);