Downsample() public method

Downsample, and copy, the image contents into the data of this object. Calling this method has no effect on the image, as the same image can be downsampled multiple times to different resolutions.
public Downsample ( IDownSample downsampler, bool findBounds, int height, int width, double hi, double lo ) : void
downsampler IDownSample The downsampler object to use.
findBounds bool Should the bounds be located and cropped.
height int The height to downsample to.
width int The width to downsample to.
hi double The high value to normalize to.
lo double The low value to normalize to.
return void
 public void ProcessWhatIs()
 {
     String filename = GetArg("image");
     try
     {
         var img = new Bitmap(filename);
         var input = new ImageMLData(img);
         input.Downsample(downsample, false, downsampleHeight,
                          downsampleWidth, 1, -1);
         int winner = network.Winner(input);
         app.WriteLine("What is: " + filename + ", it seems to be: "
                       + neuron2identity[winner]);
     }
     catch (Exception e)
     {
         app.WriteLine("Error loading: " + filename + ", " + e.Message);
     }
 }