mira_SaveImage
Sets the number of frames to keep for the decision image.
int mira_SaveImage(mrkernel* pmr, const char* pFilename);
Parameters:
- pmr: A pointer to the runtime kernel returned by mira_Init.
- pFilename: The path to the file to save the image as.
Return value:
MIRA_OK (0) or an error code.
Description:
mira_SaveImage will save the internal segmentation buffer as a PNG file, this way it can quickly be visualized what the classifier and segmenter are seeing. The classifier provides the per-pixel decisions using the colors as defined in the model and the segmenter draws white crosses to show the centroids of the detected objects. By default this image will be 500 frames high, but this can be changed using mira_SetImageFrames.
Output:
