How to adjust brightness and contrast of an image by GPUImage?
问题 I wrote a method to filter an image with brightness factor and contrast factor as following: - (UIImage*)image:(UIImage*)image withBrightness:(float)brightness contrast:(float)contrast{ GPUImagePicture *imagePicture = [[GPUImagePicture alloc] initWithImage:image]; GPUImageBrightnessFilter *brightnessFilter = [[GPUImageBrightnessFilter alloc] init]; GPUImageContrastFilter *contrastFilter = [[GPUImageContrastFilter alloc] init]; [imagePicture addTarget:brightnessFilter]; [brightnessFilter