Save internal segmentation buffer as PNG image

int mira_SaveImage(mrkernel* pmr,const char* filename)


  • Runtime environment pointer
  • Filename

Output: Result (MIRA_OK or error)


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.


   MIRA_CHECK( mira_StopAcquisition(pmr) );

   printf("\n %s",mira_GetErrorMsg(pmr));

   /* We can save the content of the internal buffer. */



Output: Content of out.png file