Skip to content

Image Cropper vTool#

The Image Cropper vTool allows you to crop images to make them smaller.

By making an image smaller, you also reduce the size of the image that subsequent vTools work with. This may reduce processing time and may help to avoid incorrect results because irrelevant information is removed. You can specify the size of the resulting image manually. Alternatively, you can use the rectangle output from any vTool that outputs rectangles, e.g., the Rectangle Measurements Pro vTool, as input for the CropArea pin to define the resulting image.

Info

The Image Cropper changes the actual image size and therefore also changes the image's coordinate system. This means that you can't return to the original image. If you want to preserve the original image for later use, consider using the ROI Creator vTool. Using the ROI Creator, you can perform operations on just a portion of the original image without losing the original.

Inputs#

Image#

Accepts images directly from a Camera vTool or from a vTool that outputs images, e.g., the Image Format Converter vTool.

CropArea#

Accepts the rectangle output from other vTools to define the resulting image size.

  • Data type: RectangleF

Outputs#

Image#

Returns the cropped image with the same data type as the input image.

Supported Pixel Formats#

The following pixel formats are supported natively:

  • Mono 8
  • Mono 16
  • Bayer XX 8
  • Bayer XX 16
  • RGB 8
  • BGR 8