Hi All,
With most SimpleITK modules the expected syntax is intuitive. But as a beginner I get occasionally stumped. For example, below I’m trying to load the SetChangeMap parameter for ChangeLabelLabelMapFilter but am not sure how to interpret the correct syntax from the documentation.
How am I supposed to pass the SetChangeMap parameter that defines old and new labels?
More generally, does anyone have suggestions for beginners on how to understand expected syntax as it’s described here.
Thank you!
filter = sitk.ChangeLabelLabelMapFilter()
filter.SetChangeMap((1,0))
TypeError Traceback (most recent call last)
<ipython-input-26-f55c87c7566e> in <module>()
----> 1 filter.SetChangeMap((1,1))
~/anaconda3/lib/python3.6/site-packages/SimpleITK/SimpleITK.py in SetChangeMap(self, ChangeMap)
_SimpleITK.ChangeLabelLabelMapFilter_SetChangeMap(self, ChangeMap)
TypeError: in method ‘ChangeLabelLabelMapFilter_SetChangeMap’, argument 2 of type ‘std::map< double,double,std::less< double >,std::allocator< std::pair< double const,double > > >’