final Rectangle5D.Integer bounds = getBounds5D().toInteger();
<BUG>final Rectangle5D.Integer roiBounds = roi.getBounds5D().toInteger();
if (bounds.contains(roiBounds))</BUG>
{
<BUG>final Rectangle5D.Integer intersection = bounds.createIntersection(roiBounds).toInteger();
int minZ;</BUG>
int maxZ;
int minT;
int maxT;
int minC;

final Rectangle5D.Integer bounds = getBounds5D().toInteger();
final Rectangle5D.Integer roiBounds = roi.getBounds5D().toInteger();
if (bounds.isEmpty() || roiBounds.isEmpty())
return false;
if (bounds.contains(roiBounds))
{
final Rectangle5D.Integer intersection = bounds.createIntersection(roiBounds).toInteger();
final Rectangle intersection2D = (Rectangle) intersection.toRectangle2D();
int minZ;
int maxZ;
int minT;
int maxT;
int minC;
