Back to FabImage Studio website

You are here: Start » Filter Reference » OpenCV » Geometric Image Transformations » cvResize

cvResize


Module: OpenCV

Resizes an image.

Name Type Range Description
Input value
inSrc Image Source image.
Input value
inDWidth Integer 0 - Destination image width. If it is zero, it is computed as round of fx*src.cols.
Input value
inDHeight Integer 0 - Destination image height. If it is zero, it is computed as round of fx*src.rows.
Input value
inFx Real 0.0 - Scale factor along the horizontal axis.
Input value
inFy Real 0.0 - Scale factor along the vertical axis.
Input value
inInterpolation CvInterpolationMethod Interpolation method.
Output value
outDst Image Output image.

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input image must not be empty in cvResize.
DomainError Interpolation method must be one of following: NEAREST, LINEAR, AREA, CUBIC, LANCZOS4, in cvResize.
DomainError One of inDHeight an inFy must not be zero in cvResize.
DomainError One of inDWidth and inFx must not be zero in cvResize.

Complexity Level

This filter is available on Basic Complexity Level.