【发布时间】:2017-07-04 09:11:42
【问题描述】:
我想知道是否可以使用 Core Image 对图像进行二值化(仅转换为黑白)?
我使用 OpenCV 和 GPUImage 制作了它,但如果可能的话,我更希望它使用 Apple Core Image
【问题讨论】:
-
(原谅我。我发布了这个评论作为答案。哎呀。)是的。检查 CIPhotoEffectMono (developer.apple.com/library/content/documentation/…)。我还编写了一个自定义的 CIColorKernel(GLSL 代码),可以“淡化”为黑白。我会在几分钟后将两者作为答案发布。
标签: swift core-image