mira_SaveImage
Save internal segmentation buffer as PNG image
int mira_SaveImage(mrkernel* pmr,const char* filename)
Input:
- Runtime environment pointer
- Filename
Output: Result (MIRA_OK or error)
Description:
mira_SaveImage saves internal segmentation buffer into a PNG file. It is intended as a quick visualization of what the classifier can "see" in a deployed system.
Segmented objects are highligted by white crosses.
Example:
MIRA_CHECK( mira_StopAcquisition(pmr) );
printf("\n %s",mira_GetErrorMsg(pmr));
/* We can save the content of the internal buffer. */
mira_SaveImage(pmr,"out.png");
mira_Release(pmr);
Output: Content of out.png file