Re: CIFilter and grayscale image
Re: CIFilter and grayscale image
- Subject: Re: CIFilter and grayscale image
- From: Graham Cox <email@hidden>
- Date: Tue, 30 Mar 2010 11:38:25 +1100
On 30/03/2010, at 9:59 AM, paul morel wrote:
> Hi, I would like to apply a custom CIFilter to a grayscale image. The problem is that the kernel of the CIFilter is for RGB images. So the output is a RGB image but I would like to convert it in grayscale and I have no idea how I could do that.This would be to display in a IKImageview.
> If someone have an idea let me know,Thanks,Paul
A greyscale RGB image contains identical data in the three channels, so throw any two away. You can probably do that easily by creating a bitmap having the greyscale characteristics you want and drawing the RGB image into it. That's likely to be faster than picking over the bitmap data yourself.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden