I would like to refine/vary a given multi-label segmentation with the multi-label fast marching algorithm. For a single label, I was able to use the FastMarchingImageFilter in python ITK.
Is it possible to use this filter to a multi-label task? I could process the labels separately, but would like to enforce mutually exclusive labels.
For a single label I use:
NodeType = itk.LevelSetNode.F3 NodeContainer = itk.VectorContainer[itk.UI, NodeType] container = NodeContainer.New() container.Initialize() for i,p in enumerate(seed4): node = NodeType() node.SetIndex(p.tolist()) node.SetValue(0.0) container.InsertElement(i, node) fm_filter = itk.FastMarchingImageFilter.IF3IF3.New(t1c, TrialPoints=container)
Best and thanks,