Friday, November 25, 2011

Encoding Images

1.  An image is 800 by 500 pixels, and each pixel can be one of four colors. How much memory would it require?
      500 * 800 = 400,000 pixels,    400,000 * 2 = 800,000 bits
2.  An image is 800 by 500 pixels, and each pixel can be one of four colors. How much storage space would it require?
500 * 800 = 400,000 pixels,    400,000 * 2 = 800,000 bits
3.  How many different colors could one represent using two, three and four bit codes?
       A two-bit code gives 4 different colors.  A three-bit code gives 8 different colors.  A four-bit code gives 16 different colors.
4.  When you add one bit to a code, what happens to the number of possible colors?
                When you add a bit to the code the number of different colors doubles.

No comments:

Post a Comment