%  Take in the name of an image file, convert it to black and white, and
%  make it into a useable matrix.
function [img] = Loadin(img)
  img = imread(img, 'tiff');
  %  We assume that the image is black and white, so the RGB
  %  components are all the same.  Therefore, we simply take the
  %  red component
  img = double(img(:,:,1))./255;
  %  The image is then scale to range from -.5 to .5 (in order to
  %  improve correlation values.)
  img = img - .5.*ones(size(img));