Set the minimum object size for segmentation


int mira_SetSegmentation(mrkernel *pmr,int enable);


Input:

  • Runtime environment pointer
  • enable - flag is to enable (1) or disable (0) object segmenttion


Output: Result code (MIRA_OK or error)


Description:

mira_SetSegmentation enables or disables object segmentation. For all type of projects it is disabled by default (Note: before 2.3, it was enabled by default for line-scan projects).. Use before starting the acquisition. Note, that the model needs to have some class or classes flagged as foreground to perform segmentation.