store cv::Mat data in object?
I have 2 questions. 1. Can I get the cv::Mat data from an image? The image is about 10x10 pixels, and grayscale. and I want to store it in a class like the array below.
2. With the data form question 1. how do I create an cv::mat object from data that is stored like:
{34, 6, 23, 67, 45 .............};
Why? I want to store the images in code, instead of having a lot of small images. Don't know if it is the best, but it fits my project really well :D
Thanks!