Color images can be represented by three matrices. Each matrix specifies the amount of Red, Green and Blue that makes up the image. This color system is known as RGB. The elements of these matrices are integer numbers between 0 and 255, and they determine the intensity of the pixel with respect to the color of the matrix. Thus, in the RGB system, it is possible to represent 16777216 different colors.


1.    

The applet below is interactive. Leave the mouse pointer still for a few moments on a pixel to see its R, G and B values.

2.    

You may define three functions F, G and H in the input fields below. Pressing the “Update!” button, the applet will replace each pixel with color (r, g, b) by a pixel of color (rnew, gnew, bnew) = (F(r,g, b), G(r, g, b), H(r, g, b)). If these functions generate intensities greater than 255, then it is assigned the value 255 for these intensities. Similarly, if the functions F, G and H generate intensities less than 0, then these intensities will be replaced by 0.

3.    

To select one of the thirteen images available, click on the corresponding icon. Challenge: using appropriate functions F, G and H, try to discover the three secret words in the last image.



r new = F(r, g, b) =
g new = G(r, g, b) =
b new = H(r, g, b) =

 

Click on one of the figures below!

    
    
    
    
    
    
    

Problems? Suggestions? We give technical support! Please, contact us by the e-mail:
conteudosdigitais@im.uff.br.