e61b4b5bfe3ad59edb0e6078a1836415e32d7b2d,ants/utils/get_mask.py,,get_mask,#,13

Before Change


            if cleanup > 0:
                mask_image = iMath(mask_image, "ME", cleanup)
                mask_image = iMath(mask_image, "MD", cleanup)
                mask_image = iMath(mask_image, "FillHoles")

            //if cleanup == 0:
            //    clustlab = label_clusters(mask_image, 1)
            //    mask_image = threshold_image(clustlab, 1, 1)

After Change


            if cleanup > 0:
                mask_image = iMath(mask_image, "ME", cleanup)
                mask_image = iMath(mask_image, "MD", cleanup)
                mask_image = iMath(mask_image, "FillHoles").threshold_image( 1, 2 )

            //if cleanup == 0:
            //    clustlab = label_clusters(mask_image, 1)
            //    mask_image = threshold_image(clustlab, 1, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ANTsX/ANTsPy
Commit Name: e61b4b5bfe3ad59edb0e6078a1836415e32d7b2d
Time: 2018-11-02
Author: stnava@gmail.com
File Name: ants/utils/get_mask.py
Class Name:
Method Name: get_mask


Project Name: ANTsX/ANTsPy
Commit Name: 13307e8395b19b23a0dc577f389d94543ed40755
Time: 2018-11-02
Author: stnava@gmail.com
File Name: ants/segmentation/kmeans.py
Class Name:
Method Name: kmeans_segmentation