(new PartOfGrayscaleImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H));
(new PartOfImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H));
	public double getSimilarity() {		int pc = width * height;		double sum = 0.0;		for (int i = 0; i < pc; i++) {			int partX = (i % width) % PART_W; // = x % PART_W			int partY = (i / width) % PART_H; // = y % PART_H			int c = (i % width) / PART_W; // = x / PART_W			int r = (i / width) / PART_H; // = y / PART_H			if (partX == 0 && partY == 0) {				measure.setQuery					(new PartOfGrayscaleImage(getQuery(),c*PART_W,r*PART_H,PART_W,PART_H));				measure.setTarget					(new PartOfGrayscaleImage(getTarget(),c*PART_W,r*PART_H,PART_W,PART_H));				sum += measure.getSimilarity();			}		}		return sum / (cols*rows);	}