Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Halftoning is a technique that uses patterns of black and white dots to simulate a grayscale image. It is useful when an output device can

Halftoning is a technique that uses patterns of black and white dots to simulate a grayscale image. It is useful when an output device can only print or display black or white. The figure below shows 3x3 patterns of black and white dots that you will use to represent blocks of 3x3 pixels in grayscale images. That is, the input will be a grayscale image whose pixels have values from 0 to 255 and the output will be an image that only contains two values, one corresponding to black and the other to white

(Ignore the fact that the dots above are circular. They should really be square.) In Matlab, write the function halftone that takes a grayscale image with values 0-255 as its input (this input should be a matrix, not a filename) and returns a binary (two-valued) image (again a matrix) as its output. The input and output should be of type uint8. Your function should use the 10 dot patterns above to transform the grayscale image to the binary image. You will have to decide on this transformation. Importantly, your input and output images should have the same size (number of pixels). Include the code for this function in your lab report.

0 5 1 6 2 7 3 8 4 9

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

Step: 1

Program for Image Halftoning by Floyd Method Program Description The input gray image will be conver... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
609082899fff4_21752.pdf

180 KBs PDF File

Word file Icon
609082899fff4_21752.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Corporate Finance

Authors: Jonathan Berk and Peter DeMarzo

3rd edition

978-0132992473, 132992477, 978-0133097894

More Books

Students also viewed these Programming questions

Question

Recognize the complexities of the medical reimbursement system.

Answered: 1 week ago