title: analyzing image file for black spots
body: <p>I'm writing a program that will scan an image file for dark spots. It needs to gather some information about the size and amount of the spots. The images are always black and white and of a piece of metal. Does anyone recommend an api or existing tool for something like this? I'd prefer java or .net but feel free to suggest anything. </p>