Re: Reduce numbers to one number
- From: "Robert Israel" <israel@xxxxxxxxxxx>
- Date: 2 Feb 2006 11:10:20 -0800
Socrates wrote:
Hello Robert - Each text file will represent one image. The pixel
values line by line can also be outputted to a graph, which is a
different way of storing and displaying the pixel values compared to
storing the values as a sequence of numbers or characters.
A graph of pixel values is an alternative way of storing and looking at
an image, but at the moment I am more interested in storing an image as
a text file.
Obviously there is nothing new in the idea of storing an image as a
text file - one could reconstruct an image manually by knowing the
values of each pixel. The only advantage is in automating this process,
with the added benefit if desired of encrypting the contents.
There is actually no difference between images and text files, except
what
programs you use to work with them. Compression programs such as
zip will run on any file, and often achieve good results. I don't know
why you think this is new.
And of course text files can be compressed much more than any jpg with
the added value that the compression is lossless - the same pixel
values are available whenever the file is opened.
Any compression method works because most of the files it deals with
are
highly predictable. In English text, "e" occurs often and "¿" hardly
ever.
Moreover, some sequences of characters are common and others are not.
If you read a text up to a certain point, you can probably make a good
guess
at what the next character is going to be. Bit-map image files (such
as .bmp)
are also quite predictable, but often in different ways: e.g. you may
have large
areas of the image with the same pixel values. Methods of compression
that
work well with text may not work well with images, and vice versa.
However, .jpg files are already compressed, so they have very little
predictability,
and compression methods are unlikely to be able to compress them much
more.
Robert Israel israel@xxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada
.
- References:
- Reduce numbers to one number
- From: Socrates
- Re: Reduce numbers to one number
- From: Robert Israel
- Re: Reduce numbers to one number
- From: Socrates
- Reduce numbers to one number
- Prev by Date: Re: Error in Stanley, Enumerative Combinatorics Vol. I?
- Next by Date: Re: Probability equation...
- Previous by thread: Re: Reduce numbers to one number
- Next by thread: Re: Reduce numbers to one number
- Index(es):
Relevant Pages
|