Currently, only binary images are accepted, which causes multi-label images to incur a big cost in terms of iterating through the different binary image labels, but this isn't necessary. This code could simply use accept a segid and work with a multi-label volume.
Currently, only binary images are accepted, which causes multi-label images to incur a big cost in terms of iterating through the different binary image labels, but this isn't necessary. This code could simply use accept a segid and work with a multi-label volume.