Skip to main content
. 2021 Feb 1;7(2):22. doi: 10.3390/jimaging7020022
Algorithm 2 Enhanced Region Growing Segmentation for Brain Tumor Segmentation
  • 1:

    input: skull stripped image, im

  • 2:

    Resize the Image

           imimresize(im,[256,256])

  • 3:

    iterate through each 8×8 block

  • 4:

    for i=1:8:256 do

  • 5:

     for j=1:8:256 do

  • 6:

      Collect the mean of each block

             mIsmean(im(i:i+7,j:j+7)

  • 7:

      Collect the centers of each block

      cBs[i+3,j+3]

  • 8:

    end for

  • 9:

      end for

  • 10:

    Select top 5 blocks based on the intensity

            [ind,vals]=max(mIs,5)

            seeds=cBs(ind)

  • 11:

    return seeds

  • 12:

    for m=1:5 do

  • 13:

     ROIm= Region-growing(seedm)

  • 14:

    end for

  • 15:

    Compare each ROIm against GT using evaluation parameters for m=1:5

  • 16:

    Select the best ROI as a final segmentation output.