CH 2
CH 2
https://en.wikipedia.org/wiki/File:Jackson%27s_Chameleon_2_edit1.jpg
How to represent black and white
pictures
• Suppose picture is 10cm x 10cm.
• Break it up into 0.1 mm x 0.1 mm squares
• 1000 x 1000 squares. “pixel”s
• If square is mostly white, represent it as
0.
• If square is mostly black, represent it as
1.
• Picture = 1 million numbers!
Picture, Representation, Reconstruction
0 0 0 1 1 1 0 0 0 0
0 0 1 0 0 0 1 1 0 0
0 1 0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0 1 0
1 0 1 0 0 0 1 0 0 1
1 0 0 0 0 0 0 0 0 1
1 0 0 1 1 1 0 0 1 0
0 1 0 0 0 0 0 0 1 0
0 0 1 0 0 0 1 1 0 0
0 0 0 1 1 1 0 0 0 0