On May 23, 2005, at 8:16 PM, M. Carlson wrote:
Okay, it's probably a case of RTFM, but I can't figure how to chain CIFilters for combined effects.
There is a sample project, CIExposureSample, under Developer > Examples > Quartz > Core Image. I can replace the CIExposureAdjust filter with CIHueAdjust, for instance, and it works fine. But if I try to make the output of one CIFilter become the input of another, like:
selectedImage = [CIImage imageWithContentsOfURL: ...
hueFilter = [CIFilter filterWithName:@"CIHueAdjust"
keysAndValues:@"inputImage",selectedImage,nil];
expFilter = [CIFilter filterWithName:@"CIExposureAdjust"
keysAndValues:@"inputImage",[hueFilter valueForKey:@"outputImage"],nil];
[context drawImage:[ expFilter valueForKey: @"outputImage"] ...
This does not seem to work. Apparently, I don't quite get the paradigm used.
Thanks for any pointers.
--M