When ROI is at the edge of a detector image, the clipping is incorrect.
When ROI is at the edge of a detector image, the clipping is incorrect.