NSBitmapImageRep:colorAtX:y returned NSColor keeps growing on the heap
问题 I'm comparing the "color distance" between two images with the same width and height to see how similar they are - the measure of similarity is just comparing them pixel by pixel and seeing how far each of their color channels are from one another. - (NSNumber*) calculateFitness:(NSImage*)currentImage andDestinationImage:(NSImage*)destinationImage { NSData *tiffData = [currentImage TIFFRepresentation]; NSBitmapImageRep *currentImageRep = [NSBitmapImageRep imageRepWithData:tiffData]; NSData