[英]How to binaries image using ImageMagick?
I have got one image like this 我有一张这样的图片
to only black and white colored image. 只能显示黑白图像。
And I come across this ImageMagick resource 我碰到了这个ImageMagick资源
UPDATE 更新
SO GOT THE BEST SOLUTION FROM @ale0xB's SUGGESTION. 因此,从@ ale0xB的建议中获得了最佳解决方案。
No third party api is required for doing this as apple's COREIMAGE.FRAMEWORK is the best for doing what I want to do. 不需要第三方api即可完成此操作,因为苹果的COREIMAGE.FRAMEWORK是执行我想做的最好的事情。 It's filters are working like charm :) 它的过滤器就像魅力一样工作:)
Thanks for the suggestion :) 谢谢你的建议:)
I use this image filter. 我使用这个图像过滤器。 And it is great in speed and provides great output :) 它的速度非常快,并且可以提供出色的输出:)
Why would you want to use imageMagick instead of the standard Core Image to produce black and White images? 为什么要使用imageMagick而不是标准Core Image来生成黑白图像? I haven't used it before, but I doubt it's gonna give a much better performance than the native framework when it's just about creating a filter. 我以前从未使用过它,但是我怀疑它在创建过滤器时会提供比本机框架更好的性能。
Since iOS 6 you have it really easy, have a look: Core Image filters , specially to CIColorMonochrome, which is the one you may be interested in. 从iOS 6开始,您可以非常轻松地查看: 核心图像滤镜 ,尤其是CIColorMonochrome,您可能会对它感兴趣。
If you're playing with images in your app, this is definitely worth checking: Core Image Programming Guide 如果您正在使用应用程序中的图像,这绝对值得检查: 核心图像编程指南
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.