For complex object segmentation, returns the fraction of class pixels wihtin the obejct


float mira_GetObjDataClassFrac(mrkernel* pmr, int entryInd, int classInd)


Input: 

  • Runtime environment pointer
  • entryInd - Object index (zero-based)
  • classInd - Class index (zero-based)


Output: Fraction (0.0 to 1.0) inclusive of pixels of specific class within specific object or error code


Description:

mira_GetObjDataClassFrac returns the fraction of specific class within an object. This function is applicable when object segmentation mask is defined as "all foregound" i.e. when complex objects are segmented.

If error occurs the negative error code value is returned.