Skip to main content
. 2022 Jun 7;14(12):2821. doi: 10.3390/cancers14122821
Algorithm 1 Steps for predicting lesions with extraprostatic extension
  • Require:IT2,IADC,Lpr

  • Require: user defined parameters α, TCLth

  • Ensure: load pre-trained cancer model fθ

  •  

  •   pCafθ(IT2,IADC)              ▹ deep learning model inference, Equation (1)

  •   Mpr dilate(Lpr)                                  ▹ Equation (2)

  •   ppCaMpr                         ▹ apply dilated prostate mask, Equation (3)

  •   pα binary threshold (p; α)                            ▹ Equation (4)

  •   Cα connected components (pα)                         ▹ Equation (5)

  •   nlen(Cα)

  •  

  •   q empty list                ▹ where final EPE lesion predictions will be appended

  •   for i in 0,1,...n1do                       ▹ iterate over all candidates Cα(i)

  •     if Cα(i)Lpr0 and Cα(i)Lpr0 then               ▹ Equations (6) and (7)

  •         lTCL(i) compute tumor–capsule contact line length(Cα(i),Lpr)         ▹ Equation (8)

  •         if lTCL(i)>TCLth then

  •            qappend(Cα(i)pα)         ▹ component Cα(i) satisfied all criteria, Equation (9)

  •                                      ▹ append to list of final EPE predictions

  •         end if

  •     else continue

  •     end if

  • end for

  • Q aggregate all final predictions for the case, q