Returns the number of pixels per class within an object with all foreground segmentation.


int mira_GetObjDataClassSize(mrkernelpmr, int entryInd, int classInd);


Parameters:

  • pmr: A pointer to the runtime kernel returned by mira_Init.
  • entryInd: Object index to get the data of, must be less than mira_GetObjCount.
  • classInd: Class index to get the data of, must be less than mira_GetDecCount.


Return value:

The number of pixels of the requested class within the requested object if the value (>= 0) or an error code (< 0).


Description:

mira_GetObjDataClassSize returns the number of pixels of a specific class within an object. This is only possible if mira_GetMaskType is set to MIRA_MASK_ALL_FOREGROUND (2).