int index = (10*r)+c; measures[index].setQuery (new PartOfGrayscaleImage(getQuery(),c*PART_W,r*PART_H,PART_W,PART_H)); measures[index].setTarget (new PartOfGrayscaleImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H)); int partX = (pixelNr % width) % PART_W; int partY = (pixelNr / width) % PART_H;
int index = ((width/PART_W)*r)+c; if (partX == 0 && partY == 0) { measures[index].setQuery (new PartOfGrayscaleImage(getQuery(),c*PART_W,r*PART_H,PART_W,PART_H)); measures[index].setTarget (new PartOfGrayscaleImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H)); }
	public void compare(int pixelNr) {		int c = (pixelNr % width) / PART_W; // = x / PART_W		int r = (pixelNr / width) / PART_H; // = y / PART_H		int index = (10*r)+c;		measures[index].setQuery			(new PartOfGrayscaleImage(getQuery(),c*PART_W,r*PART_H,PART_W,PART_H));		measures[index].setTarget			(new PartOfGrayscaleImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H));		int partX = (pixelNr % width) % PART_W; // = x % PART_W		int partY = (pixelNr / width) % PART_H; // = y % PART_H		measures[index].compare(partY * PART_W + partX);	}