• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with NSBitmapImageRep, please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Help with NSBitmapImageRep, please (From: M Pulis <email@hidden>)

  • Prev by Date: NSRuleEditor/NSPredicateEditor selected rows
  • Next by Date: Re: Creating NSDecimal
  • Previous by thread: Re: Help with NSBitmapImageRep, please
  • Next by thread: Re: Help with NSBitmapImageRep, please
  • Index(es):
    • Date
    • Thread