final ROI footprint = result.getFootprint();
if (footprint != null) {
if (imageROI.contains(footprint.getBounds2D().getBounds())) {
imageROI = footprint;
} else {
imageROI = imageROI.intersect(footprint);
}
}
// ARTIFACTS FILTERING
if (defaultArtifactsFilterThreshold != Integer.MIN_VALUE && result.isDoFiltering()){