We were given a series of images and told to create an algorithm to distinguish between the mostly black background and some potatoes. Then to calculate a series of values for the potatoes and output them at the end of the computation aswell as the images.
The original image given in this example looked like this:
When My algorithm was finished it has a reasonable success with the following Binary Image displayed
The Matlab command windows looked like so with the various values for several potatoes found in the image: