I have a bizarre .raw file in the following format, that I need to open for a class project. It has the following structure using the example of a 487x414 photo:
- The number of rows is two un-signed bytes (01E7)
- The number of columns is two un-signed bytes (019E)
- The number of bits representing each pixel (this will always be 8)
- The actual picture data
The project is to run edge detection on the .raw file, but the professor said I should be able to open it with any old image editing software (apparently, he expects me to be prompted with a window where I set the number of bytes in the header), so I tried the following to no avail:
- Paint.net
- Photoshop Elements
- Adobe Lightroom
- ImageMagick
- Gimp
- DCRaw
I'm dual booting Ubuntu and Windows, so if anyone has any ideas on how I could get this file displayed, (I'm currently trying to load it into OpenCV as a histogram, but I would like to have something to check my result against), it would be greatly appreciated.