Comment on "
Convert an NSImage to CIImage
"
by Qwerty Denzel — Nov 20
A bit late, but with my version, you can change the first two lines to these for a more efficient solution:
NSBitmapImageRep *bitmapRep = [image bestRepresentationForDevice:nil];
CIImage *ciImage = [[CIImage alloc] initWithBitmapImageRep:bitmapRep];
Of course, with the ciImage needing to be released at some later point.
Back to "
Convert an NSImage to CIImage
"
Copyright © Scott Stevenson 2004-2015
by Qwerty Denzel — Nov 20
NSBitmapImageRep *bitmapRep = [image bestRepresentationForDevice:nil];
CIImage *ciImage = [[CIImage alloc] initWithBitmapImageRep:bitmapRep];
Of course, with the ciImage needing to be released at some later point.