Skip to main content
. 2023 Aug 23;9(9):169. doi: 10.3390/jimaging9090169
Algorithm 1 Pseudo-code: Application of the funneling function. As the result of the funneling function is a real number, the value must be converted to an integer. We do so by rounding the value up (ceiling).
  • 1:

    function CalcNumOfSlicesToRemove(

      total_number_of_slices_with_tumor, total_number_of_slices

      )

  • 2:

        

  • 3:

      Real funnel_result:=funneling_function (total_number_of_slices_with_tumor)

  • 4:

        

  • 5:

      return (Integer) total_number_of_slicesceil (funnel_result)

  • 6:

    end function