Implements functions for ground truth estimation from the annotations of multiple experts. Based on SimpleITK.
Installing SimpleITK, which is not a dependency of deepflash2
.
Simultaneous truth and performance level estimation (STAPLE)
The STAPLE algorithm considers a collection of segmentations and computes a probabilistic estimate of the true segmentation and a measure of the performance level represented by each segmentation.
Source: Warfield, Simon K., Kelly H. Zou, and William M. Wells. "Simultaneous truth and performance level estimation (STAPLE): an algorithm for the validation of image segmentation." IEEE transactions on medical imaging 23.7 (2004): 903-921
exp_dir = Path('deepflash2/sample_data/expert_segmentations')
_get_expert_sample_masks(exp_dir)
files=['0004_mask.png', '0001_mask.png']
t = GTEstimator(exp_dir=exp_dir);
t.gt_estimation()
t.show_gt(files=files)
t.gt_estimation(method='majority_voting', save_dir='mv_test')
t.show_gt(method='majority_voting', max_n=2)