The image processing functions Analyze to Label Image and Analyze to Label Image Batch label images based on an existing image analysis setting and the parameters which you select from the function. For general information about the image processing, see Image Processing Workflow. For a description of all the parameters of Analyze to Label Image, see Analyze to Label Image and for Analyze to Label Image Batch, see Analyze to Label Image Batch.

The image analysis with these functions offers a wide variety of parameter options and the outcome completely depends on the combination of them. Therefore, this chapter can only give an example to illustrate the use and outcome of the function. In general, the labeling is possible as regions, contours, and double contours. For all three the same options are given in Label Mode.

As an example, the following two channel image and image analysis setting with three classes are used to illustrate the functions:

Example: Applying One channel and One channel per class

With these options, you can initialize your output image either as an image with one labeled channel or as an image where the labels for each class have a separate channel.

Labeling regions with the maximum pixel type as an 8 bit black and white image generates the following output for the first class:

Labelling the other two classes with the option One channel per class additionally creates the output for the other two classes:

If you want the regions to have the same color as defined in the image analysis setting, you can, for example, choose the option Region - Region Class Color and 24 Bit RGB as Pixel Type:

As stated before, you can choose the same options (labeling with pixel type maximum and region class color) for contours or double contours as well.