Hw.1 - Digital Image Processing Home Work #1 PID: A50060800...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Digital Image Processing Home Work #1 PID: A50060800 Dept. of Electrical And Computer Engineering Chun Joo Park
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1. Boundary extraction: Read the image eyechart into Matlab and look at it with the commands eye = imread(’eyechart.tif’,’tif’); imshow(eye) The array eye is of data type uint8, so it is integer-valued, but the pixels take on only two values: 0 and 255. To put it in the form which matlab wants for binary image processing, use: bw = 1 - round(double(eye)/255); Now it has values of 0 and 1, and the object pixels (letters) have value 1. Find at least 4 ways to extract the boundaries of the letters, either with individual commands or with combinations of operations. Answers The Matlab code and the result of boundary is attached on the following page. Here, 8 ways to acquire boundaries were used.
Background image of page 2
2. Adding salt-and-pepper noise: Write a routine which takes as input arguments a binary image and a percentage p of pixels to be randomly flipped. Flipping a pixel means that if it is white it will be made black, and if it is black it will be made white. This is sometimes called salt-and-pepper noise. Use your routine to generate 3 different versions of the binary eyechart: one with
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

Hw.1 - Digital Image Processing Home Work #1 PID: A50060800...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online