1 | initial version |
Since you have a raw 8 bit image, create a matrix that has the data size and then load your image into it.
Mat input = Mat(256, 256, CV_8UC1);
input = imread("file_location.jpeg", 1);
This will give you the raw data inside a matrix element, ready for processing.
2 | No.2 Revision |
Since you have a raw 8 bit image, create a matrix that has the data size and then load your image into it.
Mat input = Mat(256, 256, CV_8UC1);
input = imread("file_location.jpeg", imread("file_location.raw", 1);
This will give you the raw data inside a matrix element, ready for processing.