Start » Filter Reference » Image » Image Spatial Transforms » 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 | |
---|---|---|---|---|
inImage | Image | Input image | ||
inQuadrangle | Path | Rectangle defining a rotated subimage | ||
inQuadrangleAlignment | CoordinateSystem2D* | Adjusts the rectangle to the position of the inspected object | ||
inOutputSize | Size* | Dimensions of the output image | ||
inInterpolationMethod | InterpolationMethod | |||
inMargin | Integer | 0 - 65535 | Width of an additional margin for the output image | |
inBorderColor | Pixel | Color used for locations outside the quadrangle | ||
outImage | Image | Output image | ||
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.