public InputImage(String path) throws FileNotFoundException{
		origImg = new ImagePlus(path);
		if(origImg.getProcessor() == null){
			throw new FileNotFoundException();
		}
		
		//adjImg = new ImagePlus(path);
		
		//rescale the intensity of the image so that min is 5.1 and max is 249.9
		//Bounds are chosen so that we have a 2% buffer between true min and true max
		ImageStatistics imDat = origImg.getStatistics(); //retrieve statistics from the image
		ImageProcessor imProc = origImg.getProcessor();
		imProc.subtract(imDat.min);
		if((imDat.max - imDat.min) > 0.0) imProc.multiply(255.0/(imDat.max - imDat.min));
		
		//now apply a median filter with a 4x4 kernel
		ImageProcessor adjProc = imProc.duplicate();
		RankFilters medFilt = new RankFilters();
		medFilt.rank(adjProc, 1.5, RankFilters.MEDIAN);
		
//		enhance.setNormalize(true);
		enhance.stretchHistogram(adjProc, 4);
		
		adjImg = new ImagePlus("test.png", adjProc);
	}