I've written a custom image unit and gotten it working satisfactorily in Core Image Fun House. However, when I go to add it to a filter chain in my Cocoa app, the filter chain stops working. It works fine without my custom filter added into the mix. Looks like I'm in a similar situation to this earlier post, which didn't get a response:

Custom Image Unit/CIFilter troubles
http://www.cocoabuilder.com/archive/message/cocoa/2005/7/8/141081

As with Petteri's case, I'm using [CIPlugIn loadAllPlugIns] to load my plugin, which is stored in ~/Library/Graphics/Image Units. Then, in my view's drawRect method I use the following code in to call the filter:

shadowsFilter   = [CIFilter filterWithName: @"ShadowRecovery"
        keysAndValues:
                @"inputImage", imageOut,
                @"inputRange", [NSNumber numberWithFloat: shadowRangeValue],
                @"inputBoost", [NSNumber numberWithFloat: shadowBoostValue],
                nil];
imageOut = [shadowsFilter valueForKey: @"outputImage"];
[shadowsFilter retain];


My image unit is a non-executable one, with only a cikernel. As such, I haven't defined the 'outputImage' method. Is there something that I'm missing here? My filter works fine in Core Image Fun House, and I don't know how to proceed.

Thanks for any pointers,

Josh
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to