float steps = splitted.length * splitted[0].length;
for (int i = 0; i < splitted.length; i++) {
for (int j = 0; j < splitted[0].length; j++) {
ImageSearchHits hits = this.getLireResults(splitted[i][j], indexPath, colh, cold, tex);
try {
<BUG>result = eng.findBestMatch(splitted[i][j], hits, perc);
finalImg = this.assemble(finalImg, result, j, i, raster, true);</BUG>
progress.setProgress((int) (100 * ((float) (i * splitted.length + j + 1)) / steps));
} catch (IOException e1) {
e1.printStackTrace();

float steps = splitted.length * splitted[0].length;
for (int i = 0; i < splitted.length; i++) {
for (int j = 0; j < splitted[0].length; j++) {
ImageSearchHits hits = this.getLireResults(splitted[i][j], indexPath, colh, cold, tex);
try {
result = eng.findBestMatch(splitted[i][j], hits, perc, DirectoryReader.open(FSDirectory.open(Paths.get(indexPath))));
finalImg = this.assemble(finalImg, result, j, i, raster, true);
progress.setProgress((int) (100 * ((float) (i * splitted.length + j + 1)) / steps));
} catch (IOException e1) {
e1.printStackTrace();
