I have created an NSImage object, and ideally would like to determine how many of each pixels colour it contains. Is this possible?
Look for "histogram" in the Core Image documentation.