View Full Version : Article on Yahoo about new Raw from Adobe
Shakespeare
27th of September 2004 (Mon), 11:05
Pretty sure I'm the first to post this..
http://story.news.yahoo.com/news?tmpl=story&cid=562&ncid=738&e=3&u=/ap/20040927/ap_on_hi_te/adobe_digital_photos
S
Imperitus
27th of September 2004 (Mon), 11:23
Good idea long term, but I doube it'll affect those of us who already have our cameras any time soon.
Unless canon finds some way to support it with a bios update, which seems unlikely to me.
drisley
27th of September 2004 (Mon), 11:29
I can't see a universal raw format being feasible for all different types/brands of cameras. Too many variables, like sensor type, size, etc.
slin100
27th of September 2004 (Mon), 11:35
The format is supposed to be extensible. Furthermore, the just released Camera Raw 2.3 supports it. Adobe also has a free converter.
I applaud Adobe for its effort. It provides a solution to long-term archival of RAW data.
Imperitus
27th of September 2004 (Mon), 11:38
I think that if Adobe can pull it off it'll be a great thing, but it'll take time and cooporation from the camera manufacturers...
If canon, nikon etc... don't think it's a priority then it'll never happen, if they do it will. Time will tell.
slin100
27th of September 2004 (Mon), 11:54
That Adobe has chosen to make it non-proprietary and has included it in Camera RAW means that distribution will be fast and widespread. If we end-users provide input to camera manufacturers that this is a desirable feature, then maybe they'll listen.
OTOH, manufacturers have an incentive to obsolete old RAW file formats, because it forces an upgrade. If I'm not mistaken, I believe some of Canon's newer RAW processors don't recognize D30 RAW files, for example. :(
Let's just hope that manufacturers realize that this is not an issue about upgrading but one of archival. Manufacturers can insure that people will upgrade their cameras by adding more bells and whistles. Manufacturers should also realize that just because the format is non-proprietary, they are not prevented from storing proprietary information in the files that only their software can interpret.
tofuboy
27th of September 2004 (Mon), 12:07
I think this is a great idea and applaud Adobe for taking steps to try and get it used. I hope that the camera manufacturers will heed their call and adopt this standard. I would think that regardless of sensor, a RAW image could be saved in this format, as all a RAW image is is a bunch of pixels with color information and intensity information pretty much.
Jesper
27th of September 2004 (Mon), 14:54
OTOH, manufacturers have an incentive to obsolete old RAW file formats, because it forces an upgrade. If I'm not mistaken, I believe some of Canon's newer RAW processors don't recognize D30 RAW files, for example. :(
I think the archival fitness of proprietary RAW formats is not such a big problem as it may seem - it will not be totally impossible to use your RAW files from today twenty years from now.
You can reach so many people via the internet that it would probably not be very hard to find someone who can convert your old RAW files ten years from now. There's also freely available computer source code available (see dcraw (http://www.cybercom.net/~dcoffin/dcraw/)) which you will be able to compile and use on computers twenty years from now.
If the new Adobe format really becomes a standard format, you could also consider converting your old RAW files with their tool. That might be a lot of work if you have thousands of RAW files, but at least you'll have them in a futureproof format.
Andy_T
27th of September 2004 (Mon), 15:00
What is the advantage of the new DNG format over TIFF?
From what I read into it, you have to convert RAW to DNG in the first place and can then work with the new format.
Best regards,
Andy
theflyingkiwi
27th of September 2004 (Mon), 18:46
Luminous Landscape has also writen an article on it, and he talks about how it is used.
http://www.luminous-landscape.com/reviews/software/dng.shtml
It gives you a better understand of what adobe is trying to do.
Morden
27th of September 2004 (Mon), 18:53
The format is supposed to be extensible. Furthermore, the just released Camera Raw 2.3 supports it. Adobe also has a free converter.
I applaud Adobe for its effort. It provides a solution to long-term archival of RAW data.
Agreed. There has to be a "standard" at some point, otherwise - years from now - we'll come to access 'old' raw files and find that we have no way to convert them. That would be a shame.
Headcase650
27th of September 2004 (Mon), 19:26
Anyone remember the looseless jpeg2000 format that adobe made a few years ago, with hopes that all the camera manufactures would switch to it. I dont think Ive ever seen a jpg2000 file yet.
But I still think the DGN file is a good idea, im just not so sure that the camera makes will agree.
leony
27th of September 2004 (Mon), 19:57
Sounds like a good idea. ALthough from a marketing stand point it doesn't make much sense for camera makers.
Ex: Try opening a Microsoft Word '95 file in Word XP. See? Can't. Time to upgrade...
On a more practical note, RAW (at least with Canon) has adapted as the technology changed. the CR2 for example has some things in it that CRW didn't have.
The question is that as RAW formats evolve, there will be a need for DNG to evolve as well. Possibly with different versions.
On a basic level, modern DSLRs capture 12 bits of data. 16-bit TIFF doesn't compress information and holds all 12 bits, stretched to fit 16 bit file format. With EXIF info imprinted inside the file, why not just use TIFF? A TIFF with lossless compression is comparable in size to RAW.
The only benefit RAW converters give over Photoshop is that conversion and basic adjustments (level, curves, color ballance, saturation, etc.) can be batch-applied... and with adobe catching up quick, i can foresee this functionality in photoshop 9.0
Just a though...
tofuboy
27th of September 2004 (Mon), 20:03
Once you convert your file to tiff though, you don't have the same processing power as you do with RAW. Some conversions done to RAW file are better data wise than if tried to do it using the normal PS functions. Of course, if you convert your RAW file the way you like it and never touch it again, then there isn't a reason not to just use TIFF.
leony
27th of September 2004 (Mon), 20:14
Once you convert your file to tiff though, you don't have the same processing power as you do with RAW.
i respectfully disagree. if 12 bits hold 12 bits of data (info), you don't loose it unless you start doing lossy compression - which TIFF is not.
if you set a curve, flatten a file and save as 16 bit tiff. then re-open it and apply an inverse curve to it, you will be back to the original file - no info lost.
the only concern is clipping, but that is inherent to RAW conversion as well. if you convert with clipped chanels, you can't recover them in PS later.
booggerg
27th of September 2004 (Mon), 20:32
Whats the big deal of a universal format? All the big players' raw format is supported by the major softwares out there. Photoshop's RAW plugin reads files from numerous cameras.
Jim_T
27th of September 2004 (Mon), 20:46
Whats the big deal of a universal format? All the big players' raw format is supported by the major softwares out there. Photoshop's RAW plugin reads files from numerous cameras.
It makes it EASIER for Adobe to incorporate RAW into Photoshop. Also, people purchasing newly released cameras won't have to wait for Adobe or their favorite editing software authors to write a converter for the latest and greatest RAW format.
Adobe won't have to write file converters for all the different cameras. There are getting to be quite a few RAW formats.. Canon alone has several.. Adobe has to pay software writers to keep up with this. As a matter of fact, they had to write yet another routine for the 20D's RAW format because it isn't compatible with the 10D's RAW format..
Jesper
28th of September 2004 (Tue), 05:31
What is the advantage of the new DNG format over TIFF?
From what I read into it, you have to convert RAW to DNG in the first place and can then work with the new format.
The idea is that in the future camera manufacturers will make cameras that create DNG files instead of proprietary RAW format files. The DNG format is a kind of standard RAW format. As you probably know are RAW files much smaller than TIFF files because in a RAW file, only one colour per pixel is stored (just like the sensor records the data, because of the Bayer pattern).
Jesper
29th of September 2004 (Wed), 03:51
leony wrote me in a private message (Why are you sending me this in a private message instead of posting it in the forum?):
this is not true. if it would be true then every RAW file would be exactly the same size - one color per pixel. and then it would be B&W. you need a minimum of 3 colors per pixel to have a color image. the sesor has 3 times the pixels you see in photo cells. photo cells have color filters on top of them so that they record the appropriate color's intensity. each three photo cells on the sensor comprise one pixel that is saved to the file. RAW does not store info about every single photo cell.
It may be a surprise to you, but you're wrong. There are NOT three photo cells for each pixel in a sensor with a Bayer pattern, as most cameras have. Of each group of four pixels, two record only green, one records only blue and one only red. The RAW conversion software (in the camera or on the computer) interpolates the missing colours for each pixel to make an RGB image.
So a 6 MP EOS 10D for example has only 1.5 million red, 1.5 million blue and 3 million green pixels. There are NOT really 6 x 3 = 18 million photo sites on the sensor, as you suggest.
Search the web for more info on Bayer sensors.
the reason RAW files are smaller than UNCOMPRESSED TIFFs is that they are compressed with a lossless algorithm - probably a variation of LZW compression. WHen you save files as TIFFs you can have them compressed with lossless compresion as well - for a much smaller file. This is, by the way, the reason that RAW files are different in size from shot to shot - different amount of compression can be applied dependent on file's contents.
That's true, RAW files are compressed with a lossless, ZIP-like algorithm. But they also contain only one color per pixel, see above.
Jesper
29th of September 2004 (Wed), 04:52
leony, here are some articles about how Bayer sensors work:
Anatomy of a Digital Camera: Image Sensors (http://www.extremetech.com/article2/0,1558,1157576,00.asp)
How Digital Cameras Work - Capturing Color: Bayer Filter (http://money.howstuffworks.com/digital-camera12.htm)
Image Sensors from photozone.de (http://www.photozone.de/7Digital/digital_3.htm)
Specifically, your line "each three photo cells on the sensor comprise one pixel that is saved to the file. RAW does not store info about every single photo cell" is not correct. Each pixel indeed has only one photo cell and in the RAW file, the info for each photo cell is stored.
The sensors of most digital cameras record 12 bits per pixel, so the uncompressed RAW data of the 10D is 3072 x 2048 x 12 bits / 8 bits per byte = 9,437,184 bytes. By compressing it with a ZIP-like algorithm, the RAW file is usually between 4 and 6 MB in size.
An uncompressed 8-bit TIFF file contains 3072 x 2048 x 8 bits per channel x 3 channels / 8 bits per byte = 18,874,368 bytes, twice as much as the uncompressed RAW file. That makes the RAW file already twice as small, even without compression.
leony
29th of September 2004 (Wed), 17:49
Jesepr:
you are correct about the way info is read out from the sensor and the way sensors work - but that, however does not mean ALL of the info is saved to RAW unprocessed. Here's my logic, and I might be wrong - in the interests of science...
if, as you correctly say, each pixel that is on the CMOS is comprised from 4 photocells, and the "visible" image pixels are then interpolated from those 4 cells for each pixel photoshop considers an RGB value, to acheive a file of 2048x3072=6291456 pixels in visible image.
lets work backwards... my 10D is 6.3 MP - that is there is 6,300,000 photo cells on it. since each photo cell is a 12-bit value it takes 1.5 bytes to store. assuming there is no overhead (for easy math) you end up with a 9 MB file which after compression becomes about half the size - in theory.
so, here you have this 9MB file. and you think it has all those photo cells info, except it doesn't. what it has is info DERIVED from interpolating photo cell information. each "visible" pixel becomes from weighted averaging of a set of 9 adjacent pixels for RGB value.
Now, it is possible that canon lets this interpolation be done by software when you convert RAW, but it is just as easy to implement this basic interpolation at hardware level especially that on CMOS each pixel can be accessed individually. the overhead at hardware level involved is minimal.
now, since these photocells are a set of 4 to comprise 1 visible color pixel in RGB model, the effective "resolution" of 6.3 MP sensor in "visible RGB" pixels is 6.3/4=1,575,000 pixels. since that image is too small for any practical use, canon interpolates it to fill the area of an image pixel by pixel in 9 pixel square (3x3) increments. this is called "bycubic inteprolation" that photoshop uses to upsample files...
bayer matrix only describes how photocells are located on the actual chip. it does not describe how the chip is read and if the info is then "interpolated" before saving to a file.
in all reality - bycubic interpolation of the sensor's photocells is a necessary step to have an RGB image - be it done in camera before RAW is saved to a file or after during RAW conversion. only canon knows, but as you can see file sizes have nothing to do with this.
it is also not surprising that RAW is smaller than TIFF - raw holds info for 6291456 cells each cell at 12 bits = 9437184 bytes.
TIFF with 6291456 "visible pixels" has to hold 24 bits (R+G+B: 8*3) or 48 bits (16*3) with file sizes of 18.8 Mb and 100 Mb files respectively.
note that your RAW file that has photocells info is only 1.5 million "visible pixels" - all the other pixels are interpolated to create a 6 million pixel RGB file.
last, in deffence of my theory, a B&W (grayscale) file saved as TIFF uncompressed provides 12 and 6 Mb files in 16-bit and 8-bit respectively. see, after compression you still get a TIFF of those dimensions comparable to RAW - once you note that photo cells store "color blind" values - just like B&W. if there would be a way to save a file as 12-bit in B&W, file after compression would be exactly the size of RAW.
RAW doesn't hold any more information than TIFF does - it just holds the same information in a different way, a way not usable until conversion to RGB model where color is determined by 3 variables, not 4.
tofuboy
29th of September 2004 (Wed), 19:12
Once you convert your file to tiff though, you don't have the same processing power as you do with RAW.
i respectfully disagree. if 12 bits hold 12 bits of data (info), you don't loose it unless you start doing lossy compression - which TIFF is not.
if you set a curve, flatten a file and save as 16 bit tiff. then re-open it and apply an inverse curve to it, you will be back to the original file - no info lost.
the only concern is clipping, but that is inherent to RAW conversion as well. if you convert with clipped chanels, you can't recover them in PS later.
I agree that a very similar result can be had using either method and didn't say (or intend to say) that you are losing data in a RAW to TIFF conversion. What I meant was that some of the functions available in Camera RAW are more powerful than their 'equivalent' in PS. The major one being the white balance setting... a few others are slightly better or equivalent, while others are worse. I don't know the inner workings of the two systems, this is simply information I read from a published book on using Camera Raw... and I choose to believe it.
Jesper
29th of September 2004 (Wed), 23:26
Jesepr:
you are correct about the way info is read out from the sensor and the way sensors work - but that, however does not mean ALL of the info is saved to RAW unprocessed. Here's my logic, and I might be wrong - in the interests of science...
if, as you correctly say, each pixel that is on the CMOS is comprised from 4 photocells, and the "visible" image pixels are then interpolated from those 4 cells for each pixel photoshop considers an RGB value, to acheive a file of 2048x3072=6291456 pixels in visible image.
No, I didn't say each pixel is 4 photocells and that isn't correct either. Each pixel is not 4 photocells, but 1 photocell. There are 3072 x 2048 = 6,291,456 photocells = pixels in the image. The trick is that each of those pixels has only 1 color instead of 3. The missing colors are calculated from the neighbouring pixels.
lets work backwards... my 10D is 6.3 MP - that is there is 6,300,000 photo cells on it. since each photo cell is a 12-bit value it takes 1.5 bytes to store. assuming there is no overhead (for easy math) you end up with a 9 MB file which after compression becomes about half the size - in theory.
so, here you have this 9MB file. and you think it has all those photo cells info, except it doesn't. what it has is info DERIVED from interpolating photo cell information. each "visible" pixel becomes from weighted averaging of a set of 9 adjacent pixels for RGB value.
No. The RAW data is what comes from the photocells = pixels on the sensor directly. The data in the RAW file is not yet interpolated. The RAW conversion software does the interpolating.
To make an RGB image from the RAW data, the conversion software looks at each pixel. For a pixel that contains only an R value, it calculates the G and B value for that pixel by interpolating the values of the surrounding pixels (and for each G pixel, R and B are interpolated etc). The most simple algorithm for doing this is calculating a weighted average, but there are also far more sophisticated (and complicated) algorithms available, which are supposed to give better results.
Now, it is possible that canon lets this interpolation be done by software when you convert RAW, but it is just as easy to implement this basic interpolation at hardware level especially that on CMOS each pixel can be accessed individually. the overhead at hardware level involved is minimal.
When you set the camera to RAW mode, the RAW, uninterpolated data is saved in the CRW file without interpolation. When you set the camera to JPEG mode, the camera / sensor does the interpolation itself.
now, since these photocells are a set of 4 to comprise 1 visible color pixel in RGB model, the effective "resolution" of 6.3 MP sensor in "visible RGB" pixels is 6.3/4=1,575,000 pixels. since that image is too small for any practical use, canon interpolates it to fill the area of an image pixel by pixel in 9 pixel square (3x3) increments. this is called "bycubic inteprolation" that photoshop uses to upsample files...
There are not 4 photocells per pixel, see above.
bayer matrix only describes how photocells are located on the actual chip. it does not describe how the chip is read and if the info is then "interpolated" before saving to a file.
in all reality - bycubic interpolation of the sensor's photocells is a necessary step to have an RGB image - be it done in camera before RAW is saved to a file or after during RAW conversion. only canon knows, but as you can see file sizes have nothing to do with this.
it is also not surprising that RAW is smaller than TIFF - raw holds info for 6291456 cells each cell at 12 bits = 9437184 bytes.
TIFF with 6291456 "visible pixels" has to hold 24 bits (R+G+B: 8*3) or 48 bits (16*3) with file sizes of 18.8 Mb and 100 Mb files respectively.
Right, that's what I said in my post above, except that a 16 bit per channel TIFF file is not 100 MB but twice that of the 8 bpp file: 37.7 MB.
note that your RAW file that has photocells info is only 1.5 million "visible pixels" - all the other pixels are interpolated to create a 6 million pixel RGB file.
No, it does not have 1.5 million visible pixels, it has 6 million pixels but each with only one color and the other colors for each pixel have to be derived (= interpolated) from the surrounding pixels.
If the RAW file contains info on only 1.5 million "visible pixels", as you say, then you're saying that the 10D is in reality an 1.5 MP camera and the 6 MP image is created by upsampling (bicubic interpolation). That's not true. The 10D produces an image with 1.5 million red, 3 million green and 1.5 million blue pixels. That's not the same as 1.5 million RGB pixels.
last, in deffence of my theory, a B&W (grayscale) file saved as TIFF uncompressed provides 12 and 6 Mb files in 16-bit and 8-bit respectively. see, after compression you still get a TIFF of those dimensions comparable to RAW - once you note that photo cells store "color blind" values - just like B&W. if there would be a way to save a file as 12-bit in B&W, file after compression would be exactly the size of RAW.
RAW doesn't hold any more information than TIFF does - it just holds the same information in a different way, a way not usable until conversion to RGB model where color is determined by 3 variables, not 4.
Correct.
leony
30th of September 2004 (Thu), 07:21
i understand how this all works now, and still am amazed that a necessary (and really an unchangeable) step is not done in camera.
Jesper
30th of September 2004 (Thu), 08:55
i understand how this all works now, and still am amazed that a necessary (and really an unchangeable) step is not done in camera.
As I wrote above, when you set the camera to JPEG mode, the camera does the interpolation.
The interpolation step is not really "unchangeable" - as I also wrote above already, there are several algorithms available to do it. The most simple way would be to just take the mean value of the missing colours. There are also more sophisticated algorithms available, which are supposed to give better results than simply calculating the average. Here's a page that compares different RAW interpolation algorithms: A Study of Spatial Color Interpolation Algorithms for Single-Detector Digital Cameras (http://ise.stanford.edu/class/psych221/projects/99/tingchen/).
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.