Re: Getting Pixel Data From CIImage

2008-05-13 Thread Nikolai Hellwig
Hi, If you are using Leopard (10.5), you could do something like this: CIImage* imageBlurred = . NSBitmapImageRep* bitmap = [[[NSBitmapImageRep alloc] initWithCIImage: imageBlurred] autorelease]; // Getting pixels data // this returns a pointer to the pixel data [bitmap bitmapData]

Getting Pixel Data From CIImage

2008-05-12 Thread Bridger Maxwell
Hey, I am trying as hard as I can to get pixel data from a CIImage, but am failing, pretty miserably. I am using render:toBitmap:rowBytes:bounds:format:colorSpace: from CIContext and it seems to work, but doesn't really. I get data in my int* pointer, but it never changes! What am I doing wrong?