IMVPerspectiveCorrection
The IMVPerspectiveCorrection interface contains methods and properties to configure the MV Affine Transformation filter.
Methods:
| AdjustPerspective | Enable perspective adjustment. |
| GetCornerX | Get the horizontal position of the given corner. |
| GetCornerY | Get the vertical position of the given corner. |
| Interpolation | Get the interpolation mode. |
| SetCornerX | Set the horizontal position of the given corner. |
| SetCornerY | Set the vertical position of the given corner. |
Header file:
IMVPerspectiveCorrection.h
Interface definition language file:
IMVPerspectiveCorrection.idl
Typelib: MVPerspectiveCorrection
Interface ID: IID_IMVPerspectiveCorrection
| Value | Description | |
| MV_CORNER_BOTTOM_LEFT | 0 | Bottom left conrner |
| MV_CORNER_BOTTOM_RIGHT | 1 | Bottom right corner |
| MV_CORNER_TOP_RIGHT | 2 | Top right corner |
| MV_CORNER_TOP_LEFT | 3 | Top left corner |
typedef enum
_MV_TRANFORMATION_CORNER
{
MV_CORNER_BOTTOM_LEFT = 0,
MV_CORNER_BOTTOM_RIGHT,
MV_CORNER_TOP_RIGHT,
MV_CORNER_TOP_LEFT
}MV_TRANFORMATION_CORNER;
Property IMVPerspectiveCorrection::AdjustPerspective
Declaration: Property Get/Put AdjustPerspective As BooleanEnable perspective adjustment.
C Prototype:HRESULT put_AdjustPerspective(VARIANT_BOOL newVal);
HRESULT get_AdjustPerspective(VARIANT_BOOL *pVal);
Method IMVPerspectiveCorrection::GetCornerX
Declaration: Function GetCornerX(iCorner As Long) As LongGet the horizontal position of the given corner.
Parameter:
C Prototype:
iCorner Corner from the table above HRESULT GetCornerX(LONG iCorner, LONG* value);
Method IMVPerspectiveCorrection::GetCornerY
Declaration: Function GetCornerY(iCorner As Long) As LongGet the vertical position of the given corner.
Parameter:
C Prototype:
iCorner Corner from the table above HRESULT GetCornerY(LONG iCorner, LONG* value);
Property IMVPerspectiveCorrection::Interpolation
Declaration: Property Get/Put Interpolation As LongGet the interpolation mode (MV_INTERPOLATION_MODE).
C Prototype:HRESULT put_Interpolation(LONG newVal);
HRESULT get_Interpolation(LONG *pVal);
Method IMVPerspectiveCorrection::SetCornerX
Declaration: Sub SetCornerX(iCorner As Long, iXPosition As Long)Set the horizontal position of the given corner.
Parameter:
C Prototype:
iCorner Corner from the table above iXPosition New X position HRESULT SetCornerX(LONG iCorner, LONG iXPosition);
Method IMVPerspectiveCorrection::SetCornerY
Declaration: Sub SetCornerY(iCorner As Long, iYPosition As Long)Set the vertical position of the given corner.
Parameter:
C Prototype:
iCorner Corner from the table above iYPosition New Y position HRESULT SetCornerY(LONG iCorner, LONG iYPosition);
C Definitions
typedef enum
_MV_TRANFORMATION_CORNER
{
MV_CORNER_BOTTOM_LEFT = 0,
MV_CORNER_BOTTOM_RIGHT,
MV_CORNER_TOP_RIGHT,
MV_CORNER_TOP_LEFT
}MV_TRANFORMATION_CORNER;