Re: Help with NSBitmapImageRep, please
Re: Help with NSBitmapImageRep, please
- Subject: Re: Help with NSBitmapImageRep, please
- From: Ken Thomases <email@hidden>
- Date: Fri, 31 Oct 2008 02:45:15 -0500
On Oct 30, 2008, at 7:12 PM, M Pulis wrote:
I have a sensor device that give me raw data for an image of 1201 by
861 pixels at 16 bits per pixel.
Although monochromatic, I would like to represent it in an RGB
bitmap. I use an NSInteger [3] to populate the pixels via setPixel.
You should really consider using the vImage framework (part of the
Accelerate framework) to perform this transformation. It is almost
certain to be faster than what you're doing and less prone to errors.
http://developer.apple.com/documentation/Performance/Conceptual/vImage/
Cheers,
Ken
_______________________________________________
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