Problem #2


I selected a color picture of my advisor, Dr. Fadil Santosa

I read in the picture using MATLAB's "imread" function: A=imread('santosa.jpg'). Then I broke the image into 3 separate pictures using MATLAB's "imwrite" function. For example, the first picture was made by the command: imwrite(A(:,:,1),'santosa1.jpg','jpg').
R G B

Part a.
Binarize each color plane separately using thresholding. Use the same source code as in Problem #1.
R G B
When we combine the three color planes, we get the following color image.

Source Code: hw1_a.m

Part b.
Binarize each color plane separately using Floyd-Steinberg. Use the same source code as in Problem #1.
R G B
When we combine the three color planes, we get the following color image. Wow, it looks like a Serat painting.

Source Code: hw1_b.m


Back to HW 1 page.