mira_GetMaskType
Get the mask type of the loaded object segmentation model
int mira_GetMaskType(mrkernel* pmr);
Input:
- Runtime environment pointer
Output: Input data layout if >= 0 or an error code if < 0
MIRA_MASK_EACH_FOREGROUND 1
MIRA_MASK_ALL_FOREGROUND 2
This call returns the mask type for the loaded model. The 'each-foreground' type is used for single material per object situations (object detection). The 'all-foreground' mask is used for complex objects composed of multiple materials where the union of classes defines object mask (object classification). An example: A potato can have healthy flesh or rotten defect - these are the trained classes. The segmentation mask is set of 'all-foreground' and, therefore, entire piece of potato is segmented out. For each object, perClass Mira Runtime provides pixel count for each foreground class. This allows object sorting based on composition.