int v1 = getQuery().getGrayscaleValue(pixelNr); int v2 = getTarget().getGrayscaleValue(pixelNr); queryHistogram[v1]++; if (queryHistogram[v1] > queryMax) queryMax = queryHistogram[v1]; targetHistogram[v2]++; if (targetHistogram[v2] > targetMax) targetMax = targetHistogram[v2];
if (pixelNr < queryPc) { int v1 = getQuery().getGrayscaleValue(pixelNr); queryHistogram[v1]++; if (queryHistogram[v1] > queryMax) queryMax = queryHistogram[v1]; } if (pixelNr < targetPc) { int v2 = getTarget().getGrayscaleValue(pixelNr); targetHistogram[v2]++; if (targetHistogram[v2] > targetMax) targetMax = targetHistogram[v2]; }
	public void compare(int pixelNr) {		int v1 = getQuery().getGrayscaleValue(pixelNr);		int v2 = getTarget().getGrayscaleValue(pixelNr);		queryHistogram[v1]++;		if (queryHistogram[v1] > queryMax) 			queryMax = queryHistogram[v1];		targetHistogram[v2]++;		if (targetHistogram[v2] > targetMax) 			targetMax = targetHistogram[v2];	}