private static Image doAwesomeThresholding(Image original, boolean merged) {

		if (original.isHsv()) {
			throw new IllegalStateException();
		}
		long t0 = System.currentTimeMillis();
		AwesomeThresholding tp = new AwesomeThresholding(original);
		tp.calculateMeansAndDevs();
		if (merged) {
			tp.compareDevsAndMerge();
		}
		System.out.println(System.currentTimeMillis() - t0);

		return tp.complete();
	}