1809499b8a0d97cb36aada9482b764eb4692476f,ants/segmentation/joint_label_fusion.py,,joint_label_fusion,#,20
Before Change
finalsegvec2 = finalsegvec.copy()
// mapfinalsegvec to original labels
for i in range(len(probsout)):
segnum = str.split(probsout[i], "prob")[1].split(".nii.gz")[0]
finalsegvec2[finalsegvec == i] = segnum
outimg = iio2.make_image(target_image_mask, finalsegvec2)
return {"segmentation": outimg, "intensity": outimgi, "probabilityimages": probimgs}
After Change
// mapfinalsegvec to original labels
for i in range(len(probsout)):
temp = str.split(probsout[i], "prob")
segnum = temp[len(temp) - 1].split(".nii.gz")[0]
finalsegvec2[finalsegvec == i] = segnum
outimg = iio2.make_image(target_image_mask, finalsegvec2)
return {"segmentation": outimg, "intensity": outimgi, "probabilityimages": probimgs}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ANTsX/ANTsPy
Commit Name: 1809499b8a0d97cb36aada9482b764eb4692476f
Time: 2020-09-16
Author: stnava@gmail.com
File Name: ants/segmentation/joint_label_fusion.py
Class Name:
Method Name: joint_label_fusion
Project Name: osmr/imgclsmob
Commit Name: d9f6e28568406c162b79f582ae037a89a3118d26
Time: 2021-02-16
Author: osemery@gmail.com
File Name: prep_model.py
Class Name:
Method Name: post_process
Project Name: 10XGenomics/cellranger
Commit Name: 8b9ffbfdec1a9b6daf7b47f63fc2656e3e267c25
Time: 2019-02-20
Author: nlhepler@gmail.com
File Name: mro/stages/aggregator/check_molecule_info_version/__init__.py
Class Name:
Method Name: split