// copy the the vector to an array
ColorModel[] my_rgbColor = new ColorModel[rgbColors.size()];
rgbColors.copyInto(my_rgbColor);
// transfort to lab space
ColorModel labColor[] = ColorTransformer.rgb2lab(my_rgbColor);
// array to vector
Vector<ColorModel> my_labColor = new Vector<ColorModel>();
for (int i = 0; i < labColor.length; i++) {
my_labColor.addElement(labColor[i]);
}
int my_count1 = 0;
int count2 = 0;
int countIterator2 = 0;
// tmp variables
Iterator it_map_matrix1 = inputData.iterator();
// Iterator it_map_matrix2;
// Iterator it_tmp = it_map_matrix1;
double x1 = 0, y1 = 0, x2 = 0, y2 = 0;
Vector<Double> row1, row2;
int classLabel = 0;
ColorModel tmp;
BufferedWriter out;
FileWriter fw;
ColorModel rgbWhite = new ColorModel(255, 255, 255, ColorType.RGB);
ColorModel labWhite = ColorTransformer.rgb2lab(rgbWhite);
System.out.println("START");
try {
File file = new File(outputFile);