Ask Your Question

Revision history [back]

This is not possible in OpenCV with the standard cv::Mat. cv::Mat is based on a 1-d array that contains the pixel values so that every entry in your matrix has to have the same type.

But what do you mean by mat file? Do you just want to store these values? In this case a yaml-file could help you: