Resample segmentation to higher resolution

Operating system: Windows 10
Slicer version: 5.6.2

Hi,
I am trying to run the code of the script repository: Script repository — 3D Slicer documentation

However, I get: NameError: name ‘segmentationGeometryLogic’ is not defined.

And if I add, segmentationGeometryLogic = slicer.vtkSlicerSegmentationGeometryLogic()

AttributeError: ‘vtkSlicerSegmentationsModuleLogicPython.vtkSlicerS’ object has no attribute ‘SetReferenceImageGeometryInSegmentationNode’

Any help would be greatly appreciated!
Thanks,
Maria

I just tripped over this too. The example is clearly missing some code.

Did you find a solution that works? If so, can you share it? I’m looking to try this…

Thanks!!!

Found this, which might be helpful. Haven’t tried it yet, YMMV:

It would be great if someone could submit a PR to fix the script.

Wish I were less of a “script kiddie in 3D Slicer land”, that’d be fun.

This should do it

:folded_hands: @cpinter :100:

The pull request has been reviewed & integrated :rocket:

1 Like