You are on page 1of 1

ECW-705

Assignment 3

1. Make one 24-bit bitmap mage in MS paint of size 256 256 pixels with red green and blue circles. Save this as bmp, tif, and jpeg images on your computer. Now read them in Matlab using imread command. 2. Make a matrix of size 256 256 with elements as random numbers in the range 0 to 255. Display this matrix on the computer screen in the form of an image using imview command. Now, make the (1,1) element of this matrix as 512 and again display it on the computer screen using imview command. Report and explain the difference. Write the sequence of commands used in your notebook. 3. Make a 100 100 matrix such that it has 10 columns of 10 elements each having the values 0, 10, 20 . Display it on the computer screen. Write the sequence of commands used in your notebook. It should look like the image given below on the computer screen. Write the sequence of commands used in your notebook.

4. Save the image generated above on your computer in the bmp, tif, and jpeg formats using imwrite command. Report their file sizes. 5. Make a 256 256 image and divide it into six equal parts. Use the following color for each part using colormap command.
Part1 0 0 255 Part2 0 255 0 Part3 0 255 255 Part4 255 0 0 Part5 255 0 255 Part6 255 255 0

6. Make a color image of size 256 256 with three circles red, green, and blue. Convert this image to a gray scale image with and without using rgb2gray command.

Ver. 3.0

You might also like