How do I create a halftoning effect in MATLAB?

조회 수: 4 (최근 30일)
harjan
harjan 2011년 8월 26일
답변: DGM 2022년 10월 27일
How to make an image with halftoning effect that uses 75 lpi?
  댓글 수: 2
Chaowei Chen
Chaowei Chen 2011년 8월 27일
http://www.mathworks.com/matlabcentral/fileexchange/25303-image-halftoning-by-jarvis-method
harjan
harjan 2011년 8월 28일
I want AM halftoning metod But Jarvis method is a FM halftoning method
Can u say abt AM method

댓글을 달려면 로그인하십시오.

답변 (2개)

Saneem Ahmed
Saneem Ahmed 2011년 8월 28일
  댓글 수: 9
Walter Roberson
Walter Roberson 2011년 8월 31일
fx and fy would be 400 for a screen or printer frequency of 400 dpi.
I did not attempt to locate a formula relating dpi and lpi with halftoning: it would depend upon what dot shape you were using and upon the cross-angle you were using. What I did is look at the table in that Wikipedia link and then did a linear interpolation between the 300 dpi and 600 dpi figures to estimate the minimum dpi that could handle 85 lpi (since the 600 dpi had 85 lpi as a lower bound, going up over 100 lpi, implying that you would be able to do 85 lpi with a lower dpi.)
harjan
harjan 2011년 9월 2일
thx a lot sir...Can you know any reference for that AM halftoning technique......If it is possible kindly send to me...

댓글을 달려면 로그인하십시오.


DGM
DGM 2022년 10월 27일
I'm going to completely ignore the issue of LPI and DPI. Something tells me that 20 people per month don't actually intend to feed this to a printer.
imgscale = 2; % scales the image
htmscale = 7; % scales the map WRT the image
% get an image and prepare it
inpict = imread('peppers.png');
inpict = im2double(rgb2gray(inpict));
inpict = imresize(inpict,imgscale);
% create constant-frequency map
s = size(inpict);
sc = imgscale*htmscale;
[xx yy] = meshgrid(1:s(2),1:s(1));
htm = 0.5*((cos(xx*2*pi./sc).*cos(yy*2*pi./sc))+1);
% perform thresholding
mask = inpict>htm;
% display it
imshow(mask)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by