--- title: Ground Truth Estimation keywords: fastai sidebar: home_sidebar summary: "Implements functions for ground truth estimation from the annotations of multiple experts. Based on SimpleITK." description: "Implements functions for ground truth estimation from the annotations of multiple experts. Based on SimpleITK." nb_path: "nbs/09_gt.ipynb" ---
Installing SimpleITK, which is not a dependency of deepflash2
.
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)
t = GTEstimator(exp_dir=exp_dir);
t.show_data(files=['0004_mask.png', '0001_mask.png']);
t.gt_estimation()
t.gt_estimation(method='majority_voting', save_dir='mv_test')