Re: Direct pixel access
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