Re: Correct implementation of RGB channel decorrelation




"Thomas Richter" <thor@xxxxxxxxxxxxxxxxx> wrote in message news:fptrvi$ne4$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
LiloLilo schrieb:
Probably. What are your objectives? Lossy? Lossless?

Lossless

What's the problem with YCbCr? Or probably with the RCT in
JPEG2000, if you need a reversible transform?

I need channel decorrelation as first step of an image compression algorithm
to help improve compression.
I need a color decorrelation step wich is fast, lossless and easy to
implement. Also patent free.

I don't remember whether the RCT was patent free or not, but it's at least trivial
enough. But, yes, it will also expand the range of the chrominance components. It's
something your code must be able to handle. You can also try a lifting based implementation
of the YCbCr transformation with fix-point precision. Will of course also expand the
bitrange.


dunno much about RCT.

I am not sure if YCbCr can be made lossless...

also, what YCbCr primarily offers (preservation of perceptual color accuracy in the fast of loss), is not of much use for lossless compression anyways.

additionally, YCbCr is not always the "best fit" anyways (for example, for those of us who are partly colorblind, and live with the constant experience that computer-based images always look "off" compared with anything that exists IRL anyways...).


the original idea, (G, R-G, B-G), though not theoretically ideal, is very easy to make lossless, and IME works fairly well in practice...


So long,
Thomas

.



Relevant Pages

  • Re: Why channel decorrelation can improve compression?
    ... I am trying to understand why channel decorrelation can improve ... compression in RGB24 images. ... One reason is that it is a property of natural images, i.e. color channels are highly correlated because typically colors are not very extreme, and most pixels lie inside the color gammut, showing mostly variation in luminance, but not very extreme variation in color. ... , and for lossy compression, one can make use of this by representing color information less precise than luminance information. ...
    (comp.compression)
  • Re: Why channel decorrelation can improve compression?
    ... I am trying to understand why channel decorrelation can improve ... compression in RGB24 images. ... but not very extreme variation in color. ... methods when goal is just lossless compression? ...
    (comp.compression)
  • Re: Why channel decorrelation can improve compression?
    ... I am trying to understand why channel decorrelation can improve ... compression in RGB24 images. ... but not very extreme variation in color. ... methods when goal is just lossless compression? ...
    (comp.compression)
  • Re: Why channel decorrelation can improve compression?
    ... I am trying to understand why channel decorrelation can improve ... compression in RGB24 images. ... but not very extreme variation in color. ... methods when goal is just lossless compression? ...
    (comp.compression)
  • rududu image codec
    ... For those interested in image compression, I have released a new image compression algorithm. ... It allows to use both range coding and bit output without speed penalty: the outputs of the range coder and bit stream are interleaved when encoding and deinterleaved when decoding. ...
    (comp.compression)