Skip to main content
. 2022 Nov 29;14(23):5897. doi: 10.3390/cancers14235897
Algorithm 1: Preprocessing step and selecting training patches, the value of S is 100, 75, or 50.

Input: Whole slide images (WSIs) of the digitized prostate biopsy specimens (PBSs).

Output: Label the choice patches into the Gleason pattern (GP) classes.

  1. Get the histogram equalization.

  2. Divide the PBSs into patches, with size S × S pixels.

  3. Select convenient training patch
    • Estimate the majority voting for each class in the patch (MV)
    • Calculate two variables for corresponding patch, PC ←Patch Center and BR leftarrow Background ratio
    • If (MV==PC)&(BR0.5)
             choose the patch
      Else
             Remove the patch