CocoaImageHistogram
gavinb at antonym dot org
Compute the histogram from an NSImage
Simple example of accessing the raw image data given an NSImage
. Creates a CGBitmapContext
and renders the image then computes the histogram for each colour channel.