GPUImageBrightness 过滤器后 GPUImagePicture 变得不那么饱和

问题描述

在初始化 GPUImagePicture 后更改图像并将其与 GPUImageBrightnessFilter 链接。我只是在做简单的事情:

    self.photoPicture = [[GPUImagePicture alloc] initWithImage:self.image];
    GPUImageBrightnessFilter *brightnessFilter = [[GPUImageBrightnessFilter alloc] init];
    
    [self.photoPicture addTarget:brightnessFilter];
    [brightnessFilter useNextFrameForImageCapture];
    [self.photoPicture processImage];
    
    UIImage *newImage = [brightnessFilter imageFromCurrentFramebufferWithOrientation:UIImageOrientationUp];
    
    [self.imageView setimage:newImage];

更新

我发现 iphone 11 相机使照片过于饱和。当我拿到照片时,我有 UIImage 对象并将其设置为图像视图。 但是当我尝试使用 GPUImage 处理 phto 时,它变得......很自然,没有任何 iphone 11 的后期处理。

我猜 GPUImage 无法获取一些信息,即 iphone 11 保存在图像中。

GPUImagePicture 中初始化前的图像:

Image1

在 GPUImagePicture 中初始化后的图像:

Image2

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)