Edge Detection of Image in iPhone Using Image Magick(使用 Image Magick 对 iPhone 中的图像进行边缘检测)
问题描述
我想将 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.pngI 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 中的图像进行边缘检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用 Image Magick 对 iPhone 中的图像进行边缘检测
基础教程推荐
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
