private ImageProcessor doMinimumSuppression(ImageProcessor in, ImageProcessor adjusted){
		//Generate a mask with threshold 0.2*255
		ImageProcessor adjImg = adjusted.duplicate();
		adjImg.threshold(51);
				
		//now median filter with a 5x5 kernel to denoise
		
		filter.rank(adjImg, 2, RankFilters.MEDIAN);
				
		//apply mask
		ImageProcessor minSuppres = in.duplicate();
		minSuppres.copyBits(adjImg, 0, 0, Blitter.AND);
		minSuppres = minSuppres.convertToFloatProcessor();
		minSuppres.resetMinAndMax();
		minSuppres.multiply(1.0/minSuppres.getMax());
		minSuppres.resetMinAndMax();
		return minSuppres;
	}