how to use cv::Mat class to save 3 dimensions data
《learningOpencv》 tells me "The cv::Mat class can be used for arrays of any number of dimensions.".My question is "how to use cv::Mat class to save 3 dimensions data"? many thanks.
You have to use FileStorage class. This example can help you
thanks.But I want to use Mat like "3D array",how can i do this?
opencv is an image processing library. It is 2d dimensional data. You can use answer in this post (and check it)
An alternative is vector<mat> or use CV_8UC(256)
I get it,many thanks.OK,I will use something like int[255,255,255],like before.