crop_part ( Image : ImagePart : Row, Column, Width, Height : )

Cut out a rectangular image area.

The operator crop_part cuts a rectangular area from the input images. The area is indicated by a rectangle (upper left corner and size). The area must be within the image. The definition domain includes all pixels of the new image. The new image matrix has the size of a rectangle.


Parameters

Image (input_object)
(multichannel-)image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real
Input image.

ImagePart (output_object)
(multichannel-)image(-array) -> object : byte / direction / cyclic / int1 / int2 / uint2 / int4 / real
Image area.

Row (input_control)
rectangle.origin.y -> integer
Line index of upper left corner of image area.
Default value: 100
Suggested values: 10, 20, 50, 100, 200, 300, 500
Typical range of values: 0 <= Row <= 1024

Column (input_control)
rectangle.origin.x -> integer
Column index of upper left corner of image area.
Default value: 100
Suggested values: 10, 20, 50, 100, 200, 300, 500
Typical range of values: 0 <= Column <= 1024

Width (input_control)
rectangle.extent.x -> integer
Width of new image.
Default value: 128
Suggested values: 32, 64, 128, 256, 512, 768
Typical range of values: 0 <= Width <= 1024

Height (input_control)
rectangle.extent.y -> integer
Height of new image.
Default value: 128
Suggested values: 32, 64, 128, 256, 512, 525
Typical range of values: 0 <= Height <= 1024


Parallelization Information

crop_part is reentrant and automatically parallelized (on tuple level).


Possible Successors

disp_image


Alternatives

crop_rectangle1, crop_domain, change_format, reduce_domain


See also

zoom_image_size, zoom_image_factor


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH