Apply Masks to Color Image¶
Function¶
This Procedure obtains the color image part under the mask of the first index in the input mask list.
Input: color image, mask list.
Output: the color image part under the mask of the first index in the input mask list.
The graphical programming of this Procedure is as shown in Figure 1.
Functions of Involved Steps¶
The functions of the Steps are as follows (please click on the link for detailed descriptions):
Apply Masks to Image obtains the image parts corresponding to the masks in the mask list.
Obtains the first image from the output of Apply Masks to Image.
Sample Scenario¶
This Procedure can obtain the image part under the mask of the first index in the mask list output from an Instance Segmentation Step.
Input color image.
Workpiece mask list output from an Instance Segmentation Step, including three masks in this example.
List of color image parts under the masks, including three color image parts in this example.
The color image part corresponding to the mask of the first index in the mask list.
Comparison of Similar Procedures¶
Apply Masks to Color Image outputs the image part under the mask of the first index in the input mask list.
Apply Masks to Image outputs the list of image parts under all masks in the input mask list.