...
Even though the source image was black and white, it was still in the RGB space and had to be converted to gray scale. Then the edges of the images were consolidated by maximizing the contrast to obtain a truly binary image. Then the outline could be traced using the code found in our MATLAB section.