Image ROI

Function: Performs ROI cropping on the input color image. If "Keep original shape" is set, the input and output shapes are the same, padded with 0; otherwise, only the image content within the ROI is retained.

Input Parameters:

Name Type Valid Range Default Value Meaning

Input image

Image

None

None

Input image.

2D ROI

ROI2D

None

[{'min': [-2000, -2000], 'max': [2000, 2000]}]

Input is a 2*2 array, representing [{'min':[min_pixel_row, min_pixel_col],'max': [max_pixel_row, max_pixel_col]}].

Output Parameters:

Name Type Valid Range Default Value Meaning

ROI Image

Image

None

None

The image after ROI, non-ROI areas are blackened.

Parameter Settings:

Name Type Valid Range Default Value Meaning

Keep original shape

Bool

None

True

If true, the input and output shapes are the same, padded with 0, otherwise only part of the image content within the ROI is retained, and the output image is smaller than the input image.

Turn on reverse

Bool

None

False

Set to true to blacken the area within the ROI, only valid if the original shape is maintained.