Re: How much lossless compression is possible in images?
From: Richard Tobin (richard_at_cogsci.ed.ac.uk)
Date: 12/06/04
- Next message: Randy Poe: "Re: Pi, randomness of numbers?"
- Previous message: Richard Tobin: "Re: How much lossless compression is possible in images?"
- In reply to: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Next in thread: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Reply: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Messages sorted by: [ date ] [ thread ]
Date: 6 Dec 2004 21:59:06 GMT
In article <ce89r050s5p1gv3mip16fmi1hl5qvdrmfv@4ax.com>,
Mxsmanic <mxsmanic@hotmail.com> wrote:
>Actually, the chance that a random image will become smaller after
>compression with any given algorithm is always 0.5.
Why?
Consider the algorithm that precedes all input strings with a 1-bit.
It makes all strings longer.
Perhaps you don't consider that a compression algorithm. So now
consider the algorithm that replaces all strings starting with a
sequence of ten or more zeros with a byte count of the zeros (up to
255) followed by the rest of the string, and the other strings with a
0 byte followed by the original string. That only make 1 in 1024
strings smaller.
So maybe you mean an algorithm that, on average, doesn't change the
length (which is the "best" kind of algorithm). Maybe it makes one
very long string small, and lots of others just lightly bigger. This
will obviously not make 50% of images smaller.
-- Richard
- Next message: Randy Poe: "Re: Pi, randomness of numbers?"
- Previous message: Richard Tobin: "Re: How much lossless compression is possible in images?"
- In reply to: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Next in thread: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Reply: Mxsmanic: "Re: How much lossless compression is possible in images?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|