Thread: LZW compression
View Single Post
Old 26th February 2016, 08:44   #1  |  Link
rudyb
Registered User
 
Join Date: Aug 2014
Posts: 29
LZW compression

Hi,
I have a question about LZW compression.

I know that mostly if people apply LZW compression it will be applied on uncompressed TIFF image. And I believe it makes sense to do it on TIFF format, and that is because for a TIFF image (with 3 RGB channel per pixel), there is a high chance that neighboring pixels have similar channel information. For example, it is highly likely that two pixels next to each other are very close in colors, so they will have similar red channels, and similar blue and green channels. So, LZW compression will work well.

My question is whether it makes sense to apply LZW on RAW data (before Bayer interpolation)?
Because for a Bayer pattern, there is only one channel information per pixel. So, adjacent pixels will have information from different channels. For example, if a pixel is green, then the next pixel will be blue, and the next pixel will be green again (prior to de-mosaicing).....
So, I am thinking there would be less correlation between neighboring values, which, I am thinking, this will result in LZW to be less efficient !!!

So, do people use LZW on Raw data? Does anyone know if applying LZW in RAW format will be less effective than applying it in TIFF format?
rudyb is offline   Reply With Quote