• 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: Direct pixel access
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Direct pixel access


  • Subject: Re: Direct pixel access
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 24 Sep 2004 14:19:31 -0700


On Sep 24, 2004, at 1:09 PM, Trygve Inda wrote:

Are there any good tutorials around on how to do direct pixel access of a
buffer in Cocoa? I need to do some image processing and work with pixels
directly before copying the resulting image to a window.

Not a tutorial, but I've got some pixel-manipulation code here:

http://developer.apple.com/samplecode/Image_Difference/ Image_Difference.html
(see Negative.m and PixelTypes.h)


and here:
http://developer.apple.com/samplecode/Transformed_Image/ Transformed_Image.html
(see NSImageGradients.m)


Depending on what kind of processing you need to do, you might find that the vImage library does what you need.  It's got the usual convolutions and such, and it's altivec-optimized.

-jcr





On Sep 24, 2004, at 1:09 PM, Trygve Inda wrote:

Are there any good tutorials around on how to do direct pixel access of a
buffer in Cocoa? I need to do some image processing and work with pixels
directly before copying the resulting image to a window.


Not a tutorial, but I've got some pixel-manipulation code here:

http://developer.apple.com/samplecode/Image_Difference/ Image_Difference.html
(see Negative.m and PixelTypes.h)


and here:
http://developer.apple.com/samplecode/Transformed_Image/ Transformed_Image.html
(see NSImageGradients.m)


Depending on what kind of processing you need to do, you might find that the vImage library does what you need.  It's got the usual convolutions and such, and it's altivec-optimized.

-jcr







John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Direct pixel access (From: Trygve Inda <email@hidden>)

  • Prev by Date: Direct pixel access
  • Next by Date: Re: Direct pixel access
  • Previous by thread: Direct pixel access
  • Next by thread: Re: Direct pixel access
  • Index(es):
    • Date
    • Thread