Re: How much lossless compression is possible in images?

From: HERC777 (herc777_at_hotmail.com)
Date: 12/07/04


Date: 6 Dec 2004 20:57:13 -0800

The point here is any compression algorithm, or system of compression
algorithms,
operating on the total set of inputs, cannot get a total compression
over the entire set.

Consider 2MB 1000 pixels X 1000 pixels

Raw Data "Compressed File"
1 66
2 44
3 2
4 1
5 ..
..
16^1,000,000

There are 16^1,000,000 possible picture files, so there must be
16^1,000,000 distinct compressed files.

You can't have 16^1,000,000 distinct files unless the average file
length is over 1MB.
The average file length of the original 16^1,000,000 images is also
1MB.

Therefore, not every picture gets compressed.

Finding a particular compression algorithm for that image doesn't help
in the global scheme of things, because you have to say what the
algorithm is, and it wont be small. The length of the algorithm + the
compressed file will tend to be larger than the original file. The
exceptions are easily compressible data, lots of flat areas.

Herc



Relevant Pages

  • Recompressing poorly compressed files
    ... compression algorithm was not very good, and the 2nd one is very ... just compressing with a good algorithm in the first place of course. ... algorithms for compression and decompression, or even if the're a bit ... reversible (e.g. 'decompressing' a gif into a bitmap means losing some ...
    (comp.compression)
  • Re: New lossless image compression algorithm
    ... Well the algorithm should be quite stable, ... "Lossless Compression and Interpolation for High Quality Still Images ... whereas LOCO allready is in cameras ...
    (comp.compression)
  • Re: Computer being developed modeled after human brain
    ... innate skills. ... run-length-encoding compression module. ... If the "edge detection" algorithm is not useful for ... edge detection algorithm will be replaced. ...
    (comp.ai.philosophy)
  • Re: How much lossless compression is possible in images?
    ... >So how much compression could you get? ... compression that halts early, given that the ideal algorithm for that ... on half of the images (99.99999999999% of 4GB images ... the data will just be a UTM copy algorithm with the 4GB input string ...
    (sci.math)
  • Re: Random Ideas
    ... 'Faqs' thread for compression queries. ... for any (lossless) data compression ... algorithm, there will be ... into other sequences of the same units. ...
    (comp.compression)