Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Image Spatial Transforms » CropImageToRectangle

CropImageToRectangle


Creates an image from a rectangular fragment of another image (with black margins if requested).

Name Type Range Description
inImage Image Input image
inRectangle Rectangle2D Rectangle defining a rotated subimage
inRectangleAlignment CoordinateSystem2D* Adjusts the rectangle to the position of the inspected object
inInterpolationMethod InterpolationMethod
inMargin Real 0.0 - Width of an additional black margin for the output image
outImage Image Output image
outAlignedRectangle Rectangle2D Input rectangle after transformation (in the image coordinates)
outOutputAlignment CoordinateSystem2D Alignment of the output image

Applications

Usually used for creating images of individual objects, e.g. after Template Matching.

Hints

  • It is usually recommended to use Local Coordinate Systems rather than image cropping.

Examples

CropImageToRectangle used to extract an image of an object.

Complexity Level

This filter is available on Basic Complexity Level.

Filter Group

This filters is member of CropImage filter group.