Start » Filter Reference » Image » Image Spatial Transforms » CropImageToQuadrangle

CropImageToQuadrangle


Module: FoundationPro

Creates an image from a quadrangle on another image.

Applications

Can be used for cropping an image from a slightly distorted rectangle. Do not use it for perspective distortion though.
Name Type Range Description
Input value
inImage Image Input image
Input value
inQuadrangle Path Rectangle defining a rotated subimage
Input value
inQuadrangleAlignment CoordinateSystem2D* Adjusts the rectangle to the position of the inspected object
Input value
inOutputSize Size* Dimensions of the output image
Input value
inInterpolationMethod InterpolationMethod
Input value
inMargin Integer 0 - 65535 Width of an additional margin for the output image
Input value
inBorderColor Pixel Color used for locations outside the quadrangle
Output value
outImage Image Output image
Output value
outAlignedQuadrangle Path Input quadrangle after transformation (in the image coordinates)

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 Quadrangle should be specified by a closed path with exactly 4 points in CropImageToQuadrangle.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of CropImage filter group.