Returns the fraction of class pixels within object with all foreground segmentation.


float mira_GetObjDataClassFrac(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 fraction of pixels of the requested class within the requested object if the value (>= 0) or an error code (< 0).


Description:

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