This is an important area within digital representation. Though we have focused on binary representation, conversions between decimal and binary, and binary addition, the previous sections have also introduced another fundamental concept of digital representation: the idea of computing on representations.
RGB - This stands for 'Red, Green and Blue' and the value is represented in triples like (45, 45, 45). If we was going to change a digital information we can tweak for example, the RGB settings. If you was to scan a in black and white a photo of a 'moon' that you took. You would miss all the colour variation that was present when you saw the moon because the RGB values would be just black, white or gray. If you wanted the yellow in the moon to show, you can do a colorized version from how it looked when you took it. You can edit this picture by manually changing it through photo applications.
Removing the smudge
A smudge can appear from a photocopied picture taken. This is usually a very dark gray colour, as a result of the picture contacting the scanner glass. The color represents the values (28, 28, 28).
If you wanted to remove the smudge the technique you use to accomplish this is, anything very close to black (first 2 digits are 00) can
be changed to black (00xx xxxx) (0-63)
- Algorithm for this is: Any three RGB bytes, each of
whose first 2 bits are 00, are replaced with all zeros.
- Anything very close to black (first 2 digits are 00) can
be changed to black (00xx xxxx) (0-63)
OOxx xxxx OOxx xxxx OOxx xxxx - 0000 0000 0000 0000 0000 0000
Where x is a standard symbol for a "don't care digit" or "wildcard"-that is, a symbol matching either 0 or 1. So the substitution statement says, "Any three RGB bytes, each of whose first 2 bits are 00, are replaced with all zeros."
If you was to decide to boost a color, for example 'Red' you could shift the difference. by adding only half the difference from the red to orange. If you shift it by 255 pixels, the colour would be too red.
Image processingEverything we have just discussed is a part of image processing.