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

 

Corner Definition Table

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 Boolean

Enable 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 Long

Get the horizontal position of the given corner.

Parameter:

iCorner Corner from the table above
C Prototype:

HRESULT GetCornerX(LONG iCorner, LONG* value);


Method IMVPerspectiveCorrection::GetCornerY

Declaration: Function GetCornerY(iCorner As Long) As Long

Get the vertical position of the given corner.

Parameter:

iCorner Corner from the table above
C Prototype:

HRESULT GetCornerY(LONG iCorner, LONG* value);


Property IMVPerspectiveCorrection::Interpolation

Declaration: Property Get/Put Interpolation As Long

Get 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:

iCorner Corner from the table above
iXPosition New X position
C Prototype:

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:

iCorner Corner from the table above
iYPosition New Y position
C Prototype:

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;