public static boolean detectBlur(ImageProcessor image, double threshold){
		// method taken from http://stackoverflow.com/questions/7765810/is-there-a-way-to-detect-if-an-image-is-blurry
		ImageProcessor dummy = image.convertToFloatProcessor();
		dummy.resetMinAndMax();
		dummy.multiply(1.0 / dummy.getMax()); //normalize image
		dummy.resetMinAndMax();
		dummy.convolve3x3(laplaceKernel);
		dummy.resetMinAndMax();
		double maxValue = dummy.getMax();
		return threshold > maxValue;
	}