• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Newbie: Chaining CIFilters together?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie: Chaining CIFilters together?


  • Subject: Newbie: Chaining CIFilters together?
  • From: "M. Carlson" <email@hidden>
  • Date: Tue, 24 May 2005 03:16:00 +0000

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


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Newbie: Chaining CIFilters together?
      • From: Troy Stephens <email@hidden>
  • Prev by Date: Re: Does retain not work on ids?
  • Next by Date: Re: Does retain not work on ids?
  • Previous by thread: Re: Text Formatting (NSAttributedString?)
  • Next by thread: Re: Newbie: Chaining CIFilters together?
  • Index(es):
    • Date
    • Thread