Extract Image from Mask List

Function: Extracting images with mask lists.

Input Parameters:

Name Type Valid Range Default Value Meaning

Image

Image

None

None

Image.

Detection Result Mask Graph List

BinaryImage

None

None

Detection Result Mask Graph List.

Output Parameters:

Name Type Valid Range Default Value Meaning

Post-mask image list

Image

None

None

Outputs a list of masked images.

Parameter Settings:

Name Type Valid Range Default Value Meaning

Take only the edges of the mask

Bool

[True, False]

False

The image inside the mask is output by default, set to True to output the corresponding image area at the edge of the mask.

Turn on reverse

Bool

None

False

Default output image inside mask, set to true to output image area outside mask.

Type of shape

String

['minAreaRect', 'polygon', 'minMaxPoint']

polygon

If the value is minMaxPoint, then the corresponding image is taken based on the minimum and maximum points of the polygon, which will consume less time. If the value is minAreaRect, then the corresponding image is taken based on the minimum enclosing rectangle, and both methods can expand the padding pixel size outward. If the value is polygon, then the corresponding pixel points of the area are directly taken, and it is possible to choose to extract only the edge pixels of the mask.

Border outer extended pixel

Integer

[-1000, 10000]

10

Border outer extended pixel.

Wrap box X outward expansion in pixels

Integer

[-1000, 10000]

10

Wrap box X outward expansion in pixels.

Wrap box outward Y expansion in pixels

Integer

[-1000, 10000]

10

Wrap box outward Y expansion in pixels.

Edge thickness

Integer

[1, 20]

1

Edge thickness, only takes effect when extracting mask edges.