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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to