필터 지우기
필터 지우기

Color zooming or halftoning

조회 수: 3 (최근 30일)
Mesho
Mesho 2023년 10월 23일
댓글: Mesho 2023년 10월 26일
Dear all,
I have this image from wikipedia that explains halftoning.
I want to experiment the same thing with matlab for other color combinations. So what will be the output color I will see from a far distance when combining different dots with different size and rotations?
Any suggestion will be appreciated.

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 24일
Decided on a per-layer transparency, something like
transparency = 0.8;
Create each halftone in an array.
image() the lowest layer (the one to go underneath)
hold on
now loop over the other layers:
alphadata = transparency .* double(thislayer ~= 0);
image(thislayer, 'AlphaData', alphadata);
At the end of the loop, turn hold off
  댓글 수: 3
Walter Roberson
Walter Roberson 2023년 10월 25일
The potential problem with zooming it out is that you are then subject to whatever graphics smoothing that MATLAB chooses to do. You can turn off the explicit smoothing, https://www.mathworks.com/help/matlab/creating_plots/using-graphics-smoothing.html but at some point it is going to have to interpolate data from pixels to fit into the physical screen.
You might well need 200 or more dots per inch https://www.atlasscreensupply.com/blog/choosing-the-right-mesh-and-halftone-dot.htm for your halftone. Ah, more values at https://en.wikipedia.org/wiki/Halftone#Resolution_of_halftone_screens -- you will probably need more than 300 dots per inch.
Typical desktop screen resolution does not get that fine. My relative high resolution iMac, 5120 x 2880, is about 218 dots per inch.
Some laptops do get up to those resolutions -- and some smartphones do get up there. For example the recent iPhones have had resolution of roughly 460 dots per inch... on a screen that is about 6.5 inches diagonal.
If the number of pixels in your halftone images exceeds the physical limits of the display you are using, then some layer is going to have to reduce information down. So to avoid that, do not bother with an image that is more than roughly 1000 x 1200 /
Mesho
Mesho 2023년 10월 26일
Didn't run the experiment yet but thank you for the comments.

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

추가 답변 (0개)

카테고리

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