}
ImageEngine ie = new ImageEngine();
if (new File(indexPath).exists()) {
System.out.println("Begin to Load Index,Tree,Weight,Histogram");
ie.loadIndex(indexPath);
ie.loadWeight(weightPath);
ie.loadTree(treePath);
ie.loadHistogram(histogramPath);
} else {
System.out.println("Begin to Build Index");