0

I wrote my iOS image processing app using CIFilters.
Now I am going to replace the filters as GPUImageFilters.
But I don't know how can I find the corresponding GPUImageFilters from previous CIFilters?
Is there any way to find exactly same or similar GPUImageFilters with CIFilters?

Some of CIFilter names are as follows.

  • CIPhotoEffectInstant CIPhotoEffectTransfer CISepiaTone CISRGBToneCurveToLinear CISharpenLuminance CIPixellate CIGaussianBlur ...
4

1 回答 1

1

一方面,您可以查看GPUImage 中包含的过滤器的名称

  • CISepiaTone -> GPUImageSepiaFilter
  • CISharpenLuminance -> GPUImageSharpenFilter
  • CIPixellate -> GPUImagePixellateFilter
  • CIGaussianBlur -> GPUImageGaussianBlurFilter

许多滤镜都是根据 Core Image 提供的图案设计的。并不总是存在一对一的映射,一些过滤器存在于一个框架中而在另一个框架中缺失。

GPUImage 允许您通过组合其他过滤器或编写自己的片段着色器来创建自定义过滤器,因此对于其余部分,您可以构建自己的过滤器来替换 Core Image 中的过滤器。

于 2015-06-04T16:28:02.607 回答