Algorithm 2 Pseudo-code: Based on the total number of slices, this algorithm calculates the number of slices to remove from each end of the slices with tumor range. When the total number of slices to remove is an odd number, we round down (floor) the number of slices to remove from the beginning of the range and round up (ceil) the number of slices to remove from the end of the range. |
-
1:
function NumberOfSlicesToRemoveFromEachSide(
,
)
-
2:
-
3:
Integer
,
)
-
4:
-
5:
Real
-
6:
-
7:
return (Tuple<Integer, Integer>) (
,
)
-
8:
end function
|