Spring 2009 -- CMN 280, Prof. Sandvig
 
     Home + About + Schedule + Readings + Assignments + Help/Handouts + Grades + Blogs

Picture to Numbers

Part 1: I chose the picture below as my analog object. Obviously this picture has turned digital by taking a picture of it on a digital camera. However, for the sake of this assignment, we are referring to the original picture as the analog object.

Part 2: The process we will use to digitize this picture is to it make the pixels larger and apply bits to designate which color is where. The process of applying a numeric value to something is called quantizing. First, we make lines on the picture and form a grid. The grid will always have lines equidistant from each other (going both up and down, or side to side).


Next, we investigate which colors are in individual squares. If black is the primary color in the square, we turn the entire square black. If white is the primary color in the square, we turn the square white.
The picture should look like a "blurred" version of the original.

Finally we get:

Then, we let 1=black and 0=white. We read through the squares from left to right and top to bottom (like a page in a book) designating each square as 1 or 0. Each row of the picture is separated by a space.
We finally get a string of bits which if the digitized version of our original analog picture.
The string for this picture is 000011110000, 000111111100 001111111100 011111111110 011111111100 011111100000 011111100000 001111111110 000011011011 000001110000 000000000000.

Part 3: If my digitization process became very popular, it would not be good because edges of pictures would be lost and a lot of detail would go unnoticed. It would be harder to digitize pictures with smaller grids. The resolution would be higher if the grid squares would be smaller and lower resolution if the grid squares would be larger. However, with a smaller grid there would be more detail left in the picture. Lots of information would be lost, transformed, or added. Information lost would be edge detail, information added could be black area where the square is mostly black, but not completely black, and information transformed would be the entire picture.

Go to the University of Illinois at Urbana-Champaign homepage. Go to the top of this page.
Comments to csandvig@uiuc.edu.