Data Compression and Encoding Using Colors
Data Compression and Encoding Using Colors
The coding formats available today like Color is the result of interaction between
successful because of their various In case of reflected light, the light falling
can provide advancement in the coding will absorb most of the greenish and
format. The improvement in color sensors bluish part of the spectrum while
technology can give rise to a better and reflecting the reddish part, making it
specification, and look at couple of ways and PDF formats. Here each pixel is
on how data can be produced by a color represented as values for Red, Green and
Numeric representations:
in a spectral response for the each other. Light reflects on the object and falls on
filtered photodiode array that the sensor’s lenses. Then sensor operation takes
mimics that of the human eye. The place and three output voltages are obtained for
_ _
56
simple C program can do this technology. Because of color fading, data may be
conversion. Higher the resolution, represented wrongly. Color generally fades with
left to right or from the right to rate for typing is one substitution error in every 300
color won’t change. Thus data in by using an encoding technique. Key (X, Y, Z) can be
color code is more reliable. The used for encoding purpose. For example, if we have
sensor need not be placed to print a color representing (R, G, B), then instead of
horizontally. It can be focused on printing that color (R+X, G+Y, B+Z) can be printed.
the circle from any angle. Data X, Y, Z values can be positive or negative integers.
scanning time is also less because The person who knows the key can move back and
only a small dot needs to be sensed get to the original cell. Thus the data printed using
and output voltages will be available color code technology is highly reliable and secured.
in no time (propagation delay from Confidential data can be transmitted using this
In RGB 256 color mode,pixel is represented by 24 bits, in which 8 bits represent the
intensity of each color. For example, a color (80, 121, 150) is represented as
(01010000 011110010010110). In our model, we divide this cube into 8 parts.
Sequences starting with (0bbbbbbb bbbbbbb 0bbbbbbb) where b stands for binary bit 1
or 0 come under first cube.
Bit sequence no
(0bbbbbbb 0bbbbbbb 0bbbbbbb) 1
(0bbbbbbb 0bbbbbbb 1bbbbbbb) 2
(0bbbbbbb 1bbbbbbb 0bbbbbbb) 3
(0bbbbbbb 1bbbbbbb 1bbbbbbb) 4
(1bbbbbbb 0bbbbbbb 0bbbbbbb) 5
(1bbbbbbb 0bbbbbbb 1bbbbbbb) 6
(1bbbbbbb 1bbbbbbb 0bbbbbbb) 7
(1bbbbbbb 1bbbbbbb 1bbbbbbb) 8
We use first sub cube (1) to define all the characters in ASCII table. The first 128 parts of
each color are used to denote a character in the ASCII t able. For convenience, we use
the same order. Since a color is defined by three coordinates, thre e different characters
can be defined by using a color. The Red value defines the first character, Green value
defines the second character and Blue value defines third character.
Data compression:
In the above approach, we are not using all the colors efficiently. By using the remaining
colors in the other 7 coordinates, we can use the whole cube very efficiently and even
data compression can be achieved.
The remaining seven sub cubes contain 256 * 256 * 1 56 * 7/8 = 14680064 colors.
There are nearly 10000000 English words and templates used in MS word (Including all
fonts and formats). We can make a database where each color (from these remaining
seven sub cubes) represents a word. Then any word which has more than 3 letters ( or
characters) can be defined by a color which requires three 8 bit numbers to be
represented. The words which are not in the dictionary (names, places etc) are not
compressed and are represented by colors in first quadrant.
Thus by using a database, any word, no matter how many characters it has, can be
represented by a color which requires only 24 bits to be represented. Thus data can be
compressed to a large extent.
By using the above concepts of encoding and compression, large amounts can be
compressed and transmitted in a more secured way. Even if the data is hacked by
unauthorized person, he cannot decode it unless he has the same database an d knows
the key.
Using the concept of compression, more amounts of data (word documents) can be
printed in very less space (as images). Printing data is very easy because an ordinary
printer can print all the 256 mode colors. It prints colors by mixing magenta, cyan and
yellow in subtractive color mixing. Cyan, Magenta and Yellow are opposite to Re d,
Green and Blue in the RGB cube. A printer uses CMY subtractive mixing because white
paper is used for taking printouts and ink need ot be wasted to print white.
Conclusion:
Color sensors have a wide range of applications. They can completely replace barcode readers. Using
colors, large amount of data can be printed on small space and can be retrieved back effectively. Data
entry into computer is very easy because same RGB concept is already used there. They are the future
because there is no limitation number of colors and as technology advances, more number of colors can
be defined more precisely from the same RGB cube. Data transferred by using colors is more secured.
Data compression is done by maintaining a data base and sending templates which represent the word.
Thus data compression using this technology is more efficient and error free.
References:
1.http://www.keyence.com/products/sensors
2. http://en.wikipedia.org/wiki/ASCII
3. http://en.wikipedia.org/wiki/RGB_color_model
4http://www.taltech.com/TALtech_web/resources/intro_to_bc/bcpwork.htm