Object classification
perClass Mira directly applies an object classifier after object segmentation. We may view per-object decisions instead of the object IDs by selecting the Object decisions option
.
In Each foreground mode, the classification is implicit i.e. each segmented class is the object decision, this is indicated by the class color and displayed in the object list
in the Output panel. Note that while the object decision visualization seems very similar to pixel decisions in our example, there are many differences such as removed small objects along the edges.

In the All foreground mode, classification is performed based on object content. We can see that the compound object composed of the walnut touching the leaf in the center is classified as a nut in the image below. By default the classification is based on maximum fraction, also known as majority voting.
Each object in All foreground mode provides information on pixel counts of each foreground class. See the highlighted line in the object output for object 7, because the majority of pixels is classified into the "nuts" class, the entire object is as well.

Alternative classification rules can be defined in the Decisions section. In the example below, we set the rule in such way that if a fraction of "leaves" class is higher than 16%, then the object is classified as "leaves", that is what happens to object 7.
Currently, two rules can be defined based on fraction or absolute number of pixels.
