Scriptol列出了几种神奇的图像处理算法,让我们一起来看一下。
一、像素图生成向量图的算法
数字时代早期的图片,分辨率很低。尤其是一些电子游戏的图片,放大后就是一个个像素方块。Depixelizing算法可以让低分辨率的像素图转化为高质量的向量图。
二、黑白图片的着色算法
让老照片自动变成彩色的算法。
三、消除阴影的算法
不留痕迹地去掉照片上某件东西的阴影的算法。
四、HDR照片的算法
所谓"HDR照片",就是缩小亮部与暗部的对比效果,亮的地方变得比较暗,暗的地方变得比较亮,亮暗部的细节都很明显。
实现HDR的软件有很多,这里推荐G'MIC。它是GIMP图像编辑软件的一个插件,代码全部开源。
五、消除杂物的算法
所谓"消除杂物",就是在照片上划出一块区域,然后用背景自动填补。Resynthesizer可以做到这一点,它也是GIMP的一个插件。
六、自动合成照片的算法
根据一张草图,选择原始照片,然后把它们合成在一起,生成新照片。这是清华大学的科研成果。
七、美容算法
自动对容貌进行"美化"的算法。
(完)
List of algorithms for image processing whose level of intelligence avoids infinitely complex tasks.
From the simplest to more complex ones...
Starting from a raster image that is made of large squares, we arrive at a clearer picture, as if one could a posteriori change the definition of the screen on which it was drawn ...
This can be very useful if one wants to convert an old game on a modern platform such as Canvas or a smartphone.
See article depixelizing.
Implemented by Scale2x (on Sourceforge). HQX is a similar super resolution command line tool to enlarge images.
This technique is so well controlled that we can now see in color old black and white films.
It is explained in an article, Colorization Using Optimization giving several examples.
Wisely by removing the "noise", ie the image defects such as dots and stripes, and it needs to know to interpret that, the algorithm gives life to a cliche damaged or washed out.
It is implemented in a plugin for Gimp, G'Mic. It can also automatically make HDR, ie increase the brightness of light areas and darken the dark parts.
This algorithm is implemented in G'Mic too.
Used from the command line, G'Mic allows many changes examples of which can be seen in the gallery.
Intelligent algorithm to resize images maintaining the appearance of objects within it. It is actually implemented in the resizing functions of the main graphical utilities like Gimp with the Liquid Rescale plugin, ImageMagick with the -liquid-rescale option.
Seam Carving for Content-Aware Image Resizing.
It reached the highest level. From a rough outline of the object to remove on an image, and this may be a person like everything else, the algorithm is able to identify itself the object in question, to define its exact boundaries, to extrapolate what would be the background if the object had not been present, and restore the background all that without any human intervention.
This algorithm is available both as a Gimp plugin to install or in Photoshop.
By drawing a sketch and then combining objects drawn in a simplistic way to photos, it manages to produce a new image that incorporates natural objects as though they were photographed.
This algorithm is implemented in the software Sketch To Photo. From the article, you can download the command line program.
There is no written rule to define whether a face is beautiful or if it is not, then the creators followed the principle that what is more closer to the common is better.
You judge yourselves t by comparing the two versions of the same face on the photo, with the original face at left and at right as amended by the computer.
The algorithm has an augmented reality application, in conjunction with a technology that combines a camera with glasses to project an image of a modified reality on the glasses.
More information about this esthetic trick algorithm.
转载原文网址:
http://www.ruanyifeng.com/blog/2011/08/amazing_algorithms_of_image_processing.html(有部分错误已改正)
英文网址:
http://www.scriptol.com/programming/graphic-algorithms.php