Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to open raw image through opencv

I am trying to open a raw color image that I have captured from the camera using opencv. But imread does not seem to be able to open it. Below is my code:

Mat original = Mat(1792,1344, CV_8UC3);
original = imread("image.raw", 1);
if(original.empty()){
cout<<"unable to read image";
waitkey(10);
exit(0);    
}

Can someone please help me find the solution?

PS: I am using my own debayering technique to get the raw image from the sensor and writing it to the disk.

click to hide/show revision 2
retagged

Unable to open raw image through opencv

I am trying to open a raw color image that I have captured from the camera using opencv. But imread does not seem to be able to open it. Below is my code:

Mat original = Mat(1792,1344, CV_8UC3);
original = imread("image.raw", 1);
if(original.empty()){
cout<<"unable to read image";
waitkey(10);
exit(0);    
}

Can someone please help me find the solution?

PS: I am using my own debayering technique to get the raw image from the sensor and writing it to the disk.