Hi,
A follow-up to this post. I am a newbie for VTK too.
Specifically, for this example here: https://kitware.github.io/vtk-examples/site/Python/DataManipulation/MeshLabelImageColor/
Based on your previous comment, I assume that the input mhd file for this example is here: vtk-examples/src/Testing/Data/labels.mhd. I set this as the filename argument and label to be 31 by default.
I was able to run the script but ended up with some errors:
Traceback (most recent call last):
File “/home/hao/Software/Pycharm/pycharm-professional-2020.3.4/plugins/python/helpers/pydev/_pydevd_bundle/pydevd_exec2.py”, line 3, in Exec
exec(exp, global_vars, local_vars)
File “”, line 1, in
AttributeError: ‘NoneType’ object has no attribute ‘GetRange’
This is from this line of the code:
se_range = smoother_error.GetRange()
Any ideas?
Thank
Hao