I am Japanese iOS App Developer.
I have a question about GPUImageLookupFilter.
I am using Brad Larson's GPUImage framework for my project.
I want to add LookupFilter effects to stillimage in real time.
How to use GPUImageLookupFilter with GPUImageStillCamera?
I am Japanese iOS App Developer. I have a question about GPUImageLookupFilter. I am using Brad Larson's GPUImage framework for my project. I want to add LookupFilter effects to stillimage in real time. How to use GPUImageLookupFilter with GPUImageStillCamera?
GPUImageStillCamera stillCamera; GPUImageLookupFilter lookup;
(void)viewDidLoad { [super viewDidLoad]; stillCamera = [[GPUImageStillCamera alloc] initWithSessionPreset:AVCaptureSessionPresetPhoto cameraPosition:AVCaptureDevicePositionBack]; stillCamera.outputImageOrientation = UIInterfaceOrientationPortrait;
lookup = [[GPUImageLookupFilter alloc] init]; UIImage image1 = [UIImage imageNamed:@"Lookup1.jpg"]; GPUImagePicture lookupImageSource = [[GPUImagePicture alloc] initWithImage:image1]; [lookupImageSource addTarget: lookup atTextureLocation: 1]; [lookupImageSource processImage]; [stillCamera addTarget:lookup]; [lookup addTarget:self.image];
[stillCamera startCameraCapture]; }
So I would be very grateful if some could write a fully working example.