geodist[i] = 255;
}
}
// find path that connects lumen1 with lumen2 and
// goes through non-void part in the image
DistancePath bestPath = new DistancePath();
short[] path = bestPath.getPath(geodist,
lumenBorder, map, width, height);
for (int i = 0; i < path.length; i++) {
if (path[i] != 0) {
mark[i] = fid; // MUST AVOID FINDING NEW PIXELS AS NEW REGION
newLumenMask[i] = fid;