算法,使半色调图像? [英] Algorithm to make halftone images?
问题描述
什么是好的算法,使半色调图像(如这)?快速谷歌搜索带来了一堆关于这个问题的论文,但很难判断哪些是好的,高效等是否有做这样的事情一个最好的选择?
What is a good algorithm to make halftone images (like this)? A quick google search brings up a bunch of papers on the subject, but it's difficult to judge which are good, efficient, etc. Is there a best choice to do this sort of thing?
推荐答案
- 渗透到你的决议 希望通过分离的点。
- 获取的平均强度 像素组在这方面。
- 绘制的点,使得所述表面 点的面积等于 %,从白到黑 平均强度。
- Filter down to the resolution you want the "dots" separated by.
- Get the average intensity of the pixel group in that area.
- Draw the dot such that the surface area of the dot is equal to the percent from white to Black of the average intensity.
想想像素组作为一个六边形网格。使用圆函数来决定哪些像素进入的组。您可以调节圈的重叠,以调整输出的黑/饱和度。这是真正的高分辨率输出设计,如打印。如果你这样做是为了显示在屏幕上的视觉效果一定要使用防锯齿圆绘图程序来弥补低分辨率显示器。 (相对于打印,甚至高清是不是真的那么高。)
Think of the Pixels groups as a hexagonal grid. Use a circle function to decide which pixels go into the group. You can tune the overlap of the circles to adjust the black/saturation of the output. This is really designed for hi-resolution output such as print. If you are doing this to display on screen as a visual effect make sure you use an anti-aliased circle drawing routine to compensate for the low-resolution of the display. (Compared to print, even HD isn't really that high.)
如果你这样做是因为你喜欢的效果,这很酷。但如果你只是想抖动下降到黑白图像考虑使用弗洛伊德 - 斯坦伯格抖动。它提供了高品质的成果和整个图像分发错误。 <一href="http://en.wikipedia.org/wiki/Floyd-Steinberg_dithering">http://en.wikipedia.org/wiki/Floyd-Steinberg_dithering
If you are doing this because you like the effect, that's cool. But if you just want to dither down to a black and white image consider using a "Floyd-Steinberg" dither. It provides high quality results and distributes the error across the image. http://en.wikipedia.org/wiki/Floyd-Steinberg_dithering
这篇关于算法,使半色调图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!