HalveRoI: use floor and ceil to get the halved RoI instead of rounding
to the largest enclosed Po2 and then dividing by 2.
It seems to remove all red scan lines.
Asserts had to be defined out because in this version they no longer
hold true