Image Sampling and Quantization
Procedure Details
Image
- Read the 8-bit image lena.bmp of size 256 x 256. (imread)
- Downsample the image by a factor of 2 to size 128 x 128.
- Display and print the original and downsampled image after converting it back into 256 x 256 size image by row and column duplication, i.e, upsample by a factor of 2. (image, colormap, axis)
- lena_downsampled_2.bmp
- Downsample the image by a factor of 4 to size 64 x 64.
- Display and print the original and downsampled image after converting it back into 256 x 256 size image by row and column duplication, i.e, upsample by a factor of 4.
- lena_downsampled_4.bmp
- Downsample the image by a factor of 8 to size 32 x 32.
- Display and print the original and downsampled image after converting it back into 256 x 256 size image by row and column duplication, i.e, upsample by a factor of 8.
- lena_downsampled_8.bmp
- Display and print the original and sampled images on the same page.
- Quantize the pixels of the 256 x 256 size image to 4 bits/pixel.
- Quantize the pixels of the 256 x 256 size image to 2 bits/pixel.
- Quantize the pixels of the 256 x 256 size image to 1 bits/pixel (binary image).
- Display and print the original and quantized images on the same page.
Write-Up
- Cover sheet
- Print out of all lena images.
- Comment on the quality of downsampled and quantized images.
- Conclusions or summary.
- Listing of the MATLAB programs.