我想将 RGB 图像转换为下图.我正在使用 ImageMagick 库.我想知道我可以通过哪些函数将原始图像转换为 Image-2.下面是两张图片.我想只使用 ImageMagick 库.我想在 Objective C 中做类似于 ,那就是值得一看的木炭过滤器:
转换 holocaust_sm.jpg -charcoal 5 charcoal.gif
我的建议是您也尝试使用 阈值,并查看 儿童着色轮廓图像 示例,因为我相信不是单个过滤器可以达到这种效果(假设它是由 IM 生成的).
经过一段时间的研究,我相信可以通过多个过滤器的混合来实现您正在寻找的效果.您必须查看此页面,该页面展示了大量使用 IM 的酷炫效果.
这是我的尝试:
convert ms8nP.png -colorspace Gray -blur 0x.7 -negate -edge 2 -negate -threshold 40% -blur 0x.5 out.png
I want to convert RGB image into Below Image. I am using ImageMagick Library . I want help to know that by which functions i can convert in Original Image into Image-2. Here is below two images. I would like to use Only ImageMagick Library. I would like to do Image Processing simillar to this Link in Objective C.
There's no way to be sure if that image was even generated with Image Magick. But if you read this answer, it's worth taking a look at the charcoal filter:
convert holocaust_sm.jpg -charcoal 5 charcoal.gif
My suggestion is that you also experiment with thresholds, and take a look at the Children's Color-In Outline Image example, since I believe it wasn't a single filter that achieved that effect (assuming it was generated by IM).
After researching for a while I believe that an effect like the one you are looking for could be achieved through a mixture of several filters. You must check this page, which presents a huge collection of cool effects using IM.
This is my attempt:
convert ms8nP.png -colorspace Gray -blur 0x.7 -negate -edge 2 -negate -threshold 40% -blur 0x.5 out.png
这篇关于使用 Image Magick 对 iPhone 中的图像进行边缘检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!