Home

Please support mflenses.com if you need any graphic related work order it from us, click on above banner to order!

SearchSearch MemberlistMemberlist RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

RAW file
View previous topic :: View next topic  


PostPosted: Sun May 25, 2008 10:59 pm    Post subject: RAW file Reply with quote

I have a 10M RAW picture taken with a 60-300mm SP Tamron.
For my 350D the maximum would be 8.2M.
Anyone have an answer for that?
How is it possible?


PostPosted: Sun May 25, 2008 11:28 pm    Post subject: Reply with quote

RAW files are compressed without loss of info, so dimension is relative to the number of details in the shot. The more details (alas different coloured pixels) the larger the RAW.
So there's no "maximum" dimension other than pixel resolution (height x width in pixels) multiplied for pixel depth (12 bit for a 350D).
Looking at RAW dimensions is also an almost sure shot to select the best detailed and focused shot (more details -> huger file).

Hope this makes sense to you.


PostPosted: Sun May 25, 2008 11:54 pm    Post subject: Reply with quote

Kind of.
I still don't understand why the manufacturer set 8.2M as a maximum while it's possible to reach more than that?


PostPosted: Mon May 26, 2008 12:19 am    Post subject: Reply with quote

It must be based on averages.


PostPosted: Mon May 26, 2008 1:08 am    Post subject: Reply with quote

There are lossless compression algorithms that will produce variable length files, with the exact size based on scene content. Usually, such compression schemes yield 2x~3x reduction from raw data. Under "pathological" cases, they can actually cause the compressed file to be bigger than the raw file. Huffman code is an example.


PostPosted: Mon May 26, 2008 1:56 am    Post subject: Reply with quote

Canon use lossless compression on their RAW files, you notice this with differing file sizes on the RAW files, otherwise theyd all be the same size.


PostPosted: Mon May 26, 2008 5:46 am    Post subject: Reply with quote

An uncompressed RAW file shot with an 8.2 MPix camera would not result in a 8.2 MB file! It would be much bigger.
You can try it: open a full-size RAW image in Photoshop (or whatever you use) and save it as a TIFF-file. The you see the actual, uncrompressed size.
In order to avoid these big files, RAW undergoes a lossless compression (remotely related to ZIP compression).
And thus a 8.2 MPix image might turn into a 10 MB RAW file (but not 30 MB).


PostPosted: Mon May 26, 2008 7:54 am    Post subject: Reply with quote

I can see an apple and an orange. Camera's 8.2M refers to the total number of pixels where as the file refers to bytes. Each pixel has 3 bytes for colour (1 for red, green, and blue). So uncompressed 8.2M image has a file size of 24.6M bytes.


PostPosted: Mon May 26, 2008 8:11 am    Post subject: Reply with quote

In germany we call it "comparing apples with peaches" - byte vs. pixel Wink

Michael


PostPosted: Mon May 26, 2008 8:23 am    Post subject: Reply with quote

esrods wrote:
I can see an apple and an orange. Camera's 8.2M refers to the total number of pixels where as the file refers to bytes. Each pixel has 3 bytes for colour (1 for red, green, and blue). So uncompressed 8.2M image has a file size of 24.6M bytes.


+ ofcourse the metadata which contains settings of the camera, time and date when shot etc.


PostPosted: Mon May 26, 2008 10:11 am    Post subject: Reply with quote

esrods wrote:
I can see an apple and an orange. Camera's 8.2M refers to the total number of pixels where as the file refers to bytes. Each pixel has 3 bytes for colour (1 for red, green, and blue). So uncompressed 8.2M image has a file size of 24.6M bytes.


An uncompressed 8.2M RGB image at 8 bits per component has a file size of (8.2 x 3 = ) 24.6M, yes (ignoring any header information).

Raw files are not RGB (or else you would not be able to redo the white balance). They have a single value per pixel; the position of the pixel says whether that was covered by a red, green, or blue filter in the Bayer array. But that single value is 12 or 14 bits (otherwise there would be no lattitude for exposure compensation or tone mapping) which is typically stored in 16 bits for ease of processing.

Thus, an uncompressed 8.2M RAW file should be around 16.4M.

(This discussion ignores Foveon sensors or the Sony RGBA sensor)


Last edited by ChrisLilley on Mon May 26, 2008 2:27 pm; edited 1 time in total


PostPosted: Mon May 26, 2008 10:33 am    Post subject: Reply with quote

Thank you, Chris, for explaining RAW format. Wink