Description
Learning Goals:
- Learn how to read and display Digital Image files in Matlab.
- Learn RGB and YcrCb color spaces.
- Learn subsampling, upsampling, interpolation, replication methods and MSE computation in Matlab.
NOTE: You can work in the groups of two students each for Home Assignments, if you want.
Support Information:
A 704X536 color (24-bit per pixel) JPEG image (Flooded_house.jpg) is provided with this homework. The image is posted on the same page with this document.
- Read the Image: Matlab provides a command “imread” to read various image file formats. To read the image file provided with this project you can use, I = imread(‘filename.jpg’,’jpg’)
This command will open the image file and read the data into the array I. I is a three dimensional array with array dimensions I[1..800][1..600][1..3]. The third dimension is color band index.
- Display the image: Matlab provides a command “imshow” to display images. The image read as given above can be displayed simply by using the Matlab instruction, Imshow(I)


