|
IMVZoom
The IMVZoom 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: iMVZoom.h
Interface definition language file: iMVZoom.idl
Typelib: MVZoom
Interface ID: IID_IMVZoom
HRESULT get_Interpolation(
[out, retval] int *piMethod );
Returns the interpolation mode.
Parameter:
|
|
piMethod |
A pointer to an integer value that receives the
currently used interpolation method as MV_INTERPOLATION_MODE
. |
HRESULT put_Interpolation(
[in ] int *piMethod );
Sets the interpolation mode.
Parameter:
HRESULT GetZoomArea( [out] int *piXOffset, [out] int
*piYOffset, [out] int *piWidth, [out] int *piHeight
);
Returns the currently set zoom area. Alternatively the input ROI
(region of interest) can be used to return the zoom area, because
the frame input ROI is used as zoom area internally.
Parameter:
|
|
piXOffset |
A pointer to an integer value that receives the
horizontal offset of the zoom area in relation to the video frames
origin (lower left corner). |
|
|
piYOffset |
A pointer to an integer value that receives the
vertical offset of the zoom area in relation to the video frames
origin (lower left corner). |
|
|
piWidth |
A pointer to an integer value that receives the
width of the zoom area. |
|
|
piHeight |
A pointer to an integer value that receives the
height of the zoom area . |
HRESULT PutZoomArea( [in ] int iXOffset, [in ] int
iYOffset, [in ] int iWidth, [in ] int iHeight );
Sets the zoom area. Alternatively the input ROI can be used to
set the zoom area, because the frame input ROI is used as zoom area
internally. The image is zoomed to the size of the video frame.
Parameter:
|
|
iXOffset |
The horizontal offset of the zoom area in relation
to the video frames origin (lower left corner). |
|
|
iYOffset |
The vertical offset of the zoom area in relation
to the video frames origin (lower left corner). |
|
|
iWidth |
The width of the zoom area. |
|
|
iHeight |
The height of the zoom area. |
The following sequence is an example usage.
IMVZoom *pIMVZoom;
IMVFilterInfo *pIMVFilterInfo;
int iWidth, iHeight, iChannel;
...
// get input frame
information
pIMVFilterInfo->put_InfoPinDirection(
MV_INPUT_PIN );
pIMVFilterInfo->put_SelectedInfoPin( 0
);
pIMVFilterInfo->GetImageInfo(
&iWidth, &iHeight, &iChannel );
// We want to zoom into the image by the
factor two
pIMVZoom->PutZoomArea( iWidth/4,
iHeight/4, iWidth/2, iHeight/2 );
// and cubic interpolation
pIMVZoom->Interpolation(
MV_INTERPOLATION_CUBIC );
|