I’m trying to use MultiLabelSTAPLEImageFilter to combine several segmentations.
However, when I run the code, nothing happens. The code seems to be running for hours, and calling ctrl + C to stop it does not do anything. Is MultiLabelSTAPLE supposed to take that long? Are my files too big? (they are images of size 105 x 100 x 120)
I’ve also tried LabelVoting, which works perfectly.
Here is my code:
segmentations = [sitk.ReadImage(file_name, sitk.sitkUInt8, imageIO=“NiftiImageIO”)
for file_name in path_to_segmentations]
filter = sitk.MultiLabelSTAPLEImageFilter()
reference_segmentation_STAPLE = filter.Execute(segmentations)
Thanks in advance!