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 shown in the figure below.

../../../_images/apply_masks_to_color_image.png

Functions of Involved Steps

The functions of the Steps are as follows (please click on the link for detailed descriptions):

  1. Apply Masks to Image obtains the image parts corresponding to the masks in the mask list.

  2. 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.

../../../_images/apply_masks_to_color_image2.png
  1. Input color image.

  2. Workpiece mask list output from an Instance Segmentation Step, including three masks in this example.

  3. List of color image parts under the masks, including three color image parts in this example.

  4. 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.