# Revision history [back]

### 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);
}


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

 2 retagged Spark 61 ●1 ●2 ●8

### 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);
}