PDA

View Full Version : Accessing Pixel Data in a CIImage




cblackburn
Feb 27, 2007, 05:51 AM
Hey everyone,

I have a program that manipulates some images using Core Image but now I need to access data about individual pixels from the image. What is the best way to do this? Do I need to pull the image down from the GPU? If so then how do I do that?

Thanks

Chris



kainjow
Feb 27, 2007, 10:45 AM
I don't think you can modify the CIImage directly. However check out this post: http://gigliwood.com/weblog/Cocoa/Core_Image__Practic.html

cblackburn
Mar 1, 2007, 06:37 AM
Trouble is that will convert it to an NSImage but when I try to get an NSBitmapImageRep from it to read individual pixel data it crashes saying it cannot do that.

I only want to read the data at certain pixels, I don't need to change it.

Chris