double vis;
// int x, y;
int l;
Vector<Vector<Integer>> surrounding = input.getSurrounding();
ColorModel currentPointColor;
Vector<Integer> current_surrounding; // = new
// Vector<Integer>(input.getClassNumbers()+1);
Vector<Double> currentSurroundingColor;
// Vector<Double> sal_as_vector; // = new Vector<Double>(3);
double displacementVector[] = new double[3];
double displacementVectorTmp[] = new double[3];
// double dim1, dim2, dim3;
Vector<Dif> sum_dif = new Vector<Dif>();
// sum_dif.removeAllElements();
for (int i = 0; i < input.getClassNumbers(); i++)
sum_dif.add(new Dif());
for (int i = 0; i < data.size(); i++) {
vis = visibility.get(i);
// sal = saliency.get(i);
// x = data.get(i).get(0);
// y = data.get(i).get(1);
l = data.get(i).get(2);
weight = getWeight(i, input, labColors); // input.getMeanViewVisibility().get(i)
// / vis;
current_surrounding = surrounding.get(i);
currentPointColor = (ColorModel) labColors.elementAt(l);
// change local color
currentSurroundingColor = VisUtil.mean_surrounding_color_as_vector(
currentPointColor, labColors, current_surrounding, input
.getClassNumbers());
// logger.logln("adj.Color.Locally - Center Point Color: " +
// currentSurroundingColor.toString());
// logger.logln("adj.Color.Locally - MEAN(Surrounding Color): " +
// currentSurroundingColor.toString());
for (int j = 0; j < currentSurroundingColor.size(); j++) {
displacementVector[j] = currentPointColor.getDimension(j)
- currentSurroundingColor.get(j);
}
double length = Math.sqrt(displacementVector[0]
* displacementVector[0] + displacementVector[1]