# 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);
if(original.empty()){
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

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