Image+Quantization


 * ||~ Procedures ||
 * 1. || Start the Lab

|| ▐ 256x256 || ▐ W * L * # of Bits || ▐ 524288 bits - OR - 65536 Bytes || ▐ There aren't as many shades in the grayscale || Observe and record the changes in the quantized image. || ▐ 2:1 || ▐ 1.6:1 || ▐ Water - ▐ Face - ▐ Hair - ▐ The difference in the colors of some areas are not as different as they are in other areas. || ▐ The Quantized Image is darker because it has a lesser color palette available to it. || ▐ 8* smaller
 * 2. || The lab starts with the slider set to 8 bits / pixel ||
 * || **Q1: What is the width and height of the original image in pixels?**
 * || **Q2: What is the formula for the number of bits per pixel in each image?**
 * || **Q3: What is the total number of bits in the original image?**
 * || **Q4: Examine the quantized image carefully. Identify the differences between the two images**
 * 3. || For the next questions switch the slider between 5 and 4 bits per pixel.
 * || **Q5A: At 4 bits per pixel, what is the ratio of the number of bits in the quantized image to the number of bits in the**
 * original image?**
 * || **Q5B: At 5 bits per pixel, what is the ratio of the number of bits in the quantized image to the number of bits in theoriginal image?**
 * || **Q6: Examine the following parts of the image for [|false contouring].**
 * Why do some parts of the image have false contouring and not others?**
 * 4. || Adjust the slider to 3 bits per pixel. Study the pattern in the shirt for both images. ||
 * || **Q7: Which is darker? Why?**
 * 5. || Adjust the slider to 1 bit per Pixel. ||
 * || **Q8A: How much smaller is this image in terms of bits than the original?**

▐ The picture lost ~88% of it's detail
 * Q8B: How much of the detail from the original image is lost?**

|| ▐ The detail is decreased exponentially as the number of bits/pixel is lowered.
 * 6. || Use the Image File Path and the browse folder icon to load a new image **cityLights256x256.bmp** ||
 * 7. || Adjust the slider to vary the number of bits per pixel from 8 to 1. Record the differences in the image at each level. ||
 * || **Q9A: As the number of bits per pixel is lowered, how does the detail of the image compare to the previous level?**

▐ The decrease in bits only lets a certain amount of color information be stored, which results in a decrease in detail level. || Adjust the slider to vary the number of bits per pixel from 8 to 1. Observe the differences in the image at each level. At first glance, the sky in the origial image appears to be the same grey level. (no false contours) || ▐ 32 levels
 * Q9B: Explain why there is a difference?**
 * 8. || Use the Image File Path and the browse folder icon to load a new image **building256x256.bmp**.
 * || **Q10A: Change the number of bits per pixel to find the number of gray levels in the original image. How may levels are there?**

▐ 0110 || ▐ Because half the sky is a level 6 and the other half is level 7, and that is where the levels split into black and white. || ▐ 524288 || Adjust the slider to vary the number of bits per pixel from 8 to 1. Observe the differences in the image at each level. || ▐ 512x512
 * Q10B: Using the quantized image, estimate and record the range of 8 bit values used for the sky in the original image.**
 * || **Q11: Why is false contouring more noticeable in the sky than the building?**
 * || **Q12: What is the total number of bits in the original image?**
 * 9. || Use the Image File Path and the browse folder icon to load a new image **building512x512.bmp**.
 * || **Q13A: What is the width and height of the original image in pixels?**

▐ It's 4 times larger
 * Q13B: How does this compare to the number of pixels in the origial image in Q1?**

▐ There are more pixels to store
 * Q13C. Explain why there is a difference in the number of bits.**

▐ The quality is not as good because there is more information to store in the same amount of bits.
 * Q13D: How does the quality of the image compare to the the image is step 8 building256x256.bmp**

||
 * || Set the image to 3 bits per pixel.
 * Q14: Compare the following and look for false contouring.**

▐ In the upper right corner ▐ Next to the building ▐ Not extremely quantized ▐ Not quantized || ▐ 5 Bits/pixel
 * The cloud?**
 * The sky?**
 * The building?**
 * The palm trees?**
 * || **Q15A: Work with the number of bits per pixel until you get the number of bits to match the the number of bits in question 12.**
 * building256x256.bmp. What is the number of bits per pixel that makes the total number of bits match?**

▐ The original has more detail || ||
 * Q15B: Which image is best? Why?**
 * 10. || Experiment with other images in the lab.
 * 11. || Stop the lab and Close the lab. ||