使用Image Magick在iPhone中对图像进行边缘检测 [英] Edge Detection of Image in iPhone Using Image Magick

查看:345
本文介绍了使用Image Magick在iPhone中对图像进行边缘检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将RGB图像转换为下图。我正在使用ImageMagick Library。我想帮助知道我可以通过哪些功能将原始图像转换为Image-2。这是下面两张图片。我想使用Only ImageMagick Library。我想对目标C中的,那就是值得一看木炭过滤器

 转换holocaust_sm.jpg -charcoal 5 charcoal.gif 

我的建议是你也试验门槛,并查看儿童的彩色轮廓图像例如,因为我认为不是单个过滤器达到了这种效果(假设它是由IM生成的)。



经过一段时间的研究后我相信像你正在寻找的效果可以通过几个过滤器的混合来实现。你必须查看这个页面,它使用IM提供了大量很酷的效果。<这是我的尝试:

 转换ms8nP.png -colorspace灰色-blur 0x.7 -negate -edge 2 -negate -t​​hreshold 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中对图像进行边缘检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆