|
IMVAdvancedOpticalFlow2
IMVAdvancedOpticalFlow2 Interface.
The IMVAdvancedOpticalFlow2 interface gains access to the
feature points used by the MV AdvancedOpticalFlow
filter.
Methods:
Header file: IMVAdvancedOpticalFlow.h
Interface definition language file:
IMVAdvancedOpticalFlow.idl
Typelib: MVAdvancedOpticalFlow
Interface ID: IID_IMVAdvancedOpticalFlow2
Method IMVAdvancedOpticalFlow2::SlectedNewFeatures
Declaration:
Method SelectNewFeatures As Boolean
VARIANT_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);
|