public void setQualitySettings(int settings){

		switch(settings){
		case QUALITY_LOW:
			edfMethod = ExtendedDepthOfField.SOBEL;
			reassignment = false;
			break;
		case QUALITY_LM:
			edfMethod = ExtendedDepthOfField.VARIANCE;
			varWindowSize = 5;
			reassignment = false;
			break;
		case QUALITY_MEDIUM:
			edfMethod = ExtendedDepthOfField.REAL_WAVELETS;
			nScales = ((maxScales-2) > 1 ?  maxScales : 1);
			splineOrder = 3;
			subBandCC = true;
			majCC = false;
			reassignment = true;
			break;
		case QUALITY_MH:
			edfMethod = ExtendedDepthOfField.REAL_WAVELETS;
			nScales = (maxScales > 1 ?  maxScales : 1);
			splineOrder = 3;
			subBandCC = true;
			majCC = true;
			reassignment = true;
			break;
		case QUALITY_HIGH:
			edfMethod = ExtendedDepthOfField.COMPLEX_WAVELETS;
			nScales = (maxScales > 1 ?  maxScales : 1 );
			daubechielength = 14;
			subBandCC = true;
			majCC = true;
			reassignment = true;
			break;
		default:
			throw new RuntimeException("Unknown Error: in settings.");
		}
	}