|
IMVRotation
The IMVRotation interface is used to control the filters image
processing algorithm. Read the filter
description to see how the filter is used. Read the remarks for implementation
details.
Header file: iMVRotation.h
Interface definition language file: iMVRotation.idl
Typelib: MVRotation
Interface ID: IID_IMVRotation
HRESULT get_RotationCenterX( [out, retval] int
*piCenterX );
Returns the horizontal center of the rotation in relation to the
image origin (lower left corner).
Parameter:
|
|
piCenterX |
A pointer to an integer value that receives the
horizontal center of the rotation. |
HRESULT put_RotationCenterX( [in ] int iCenterX
);
Sets the horizontal center of the rotation in relation to the
image origin (lower left corner).
Parameter:
|
|
iCenterX |
The horizontal center of the rotation. |
HRESULT get_RotationCenterY( [out, retval] int
*piCenterY );
Returns the vertical center of the rotation in relation to the
image origin (lower left corner).
Parameter:
|
|
piCenterY |
A pointer to an integer value that receives the
vertical center of the rotation. |
HRESULT put_RotationCenterY( [in ] int iCenterY
);
Sets the vertical center of the rotation in relation to the
image origin (lower left corner)..
Parameter:
|
|
iCenterY |
The vertical center of the rotation. |
HRESULT get_CenterMode( [out,
retval] int *piCenterMode );
Returns the currently used center mode.
Parameter:
HRESULT put_CenterMode( [in ] int
iCenterMode );
Sets the center mode.
Parameter:
HRESULT get_RotationAngle(
[out, retval] double *pdAngle );
Returns the currently used rotation angle in degrees.
Parameter:
|
|
pdAngle |
A pointer to a float value that receives the
rotation angle in degrees. |
HRESULT put_RotationAngle(
[in ] double dAngle );
Sets the rotation angle in degrees.
Parameter:
|
|
dAngle |
The rotation angle in degrees. |
HRESULT get_Interpolation(
[out, retval] int *piInterpolation);
Returns the currently used interpolation mode.
Parameter:
|
|
piInterpolation |
A pointer to an integer value that receives the
interpolation mode as MV_INTERPOLATION_MODE
. |
HRESULT put_Interpolation(
[in ] int iInterpolation);
Sets the interpolation mode.
Parameter:
Filter specific structures and enumerators
typedef enum
_MV_ROTATION_CENTER_MODE
{
MV_ROTATION_CENTER_MANUAL= 0,
MV_ROTATION_CENTER_IMAGE,
MV_ROTATION_CENTER_INPUT_ROI,
MV_ROTATION_CENTER_OUTPUT_ROI
} MV_ROTATION_CENTER_MODE;
The following sequence is used to .
IMVRotation *pIMVRotation;
...
// We want to rotate the video frame 45°
around the image center
pIMVRotation->put_CenterMode(
MV_ROTATION_CENTER_IMAGE );
pIMVRotation->put_RotationAngle( 45
);
pIMVRotation->put_Interpolation(
MV_INTERPOLATION_NN );
|