Filter löschen
Filter löschen

Color zooming or halftoning

3 Ansichten (letzte 30 Tage)
Mesho
Mesho am 23 Okt. 2023
Kommentiert: Mesho am 26 Okt. 2023
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.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Okt. 2023
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 Kommentare
Walter Roberson
Walter Roberson am 25 Okt. 2023
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 am 26 Okt. 2023
Didn't run the experiment yet but thank you for the comments.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by