How do I get Slice Thickness from a vtkMRMLScalarVolumeNode in Python?
Thanks
How do I get Slice Thickness from a vtkMRMLScalarVolumeNode in Python?
Thanks
I guess you need this for shifting the slice view by a whole pixel in your segment editor effect. For this, you actually need the slice spacing from the slice view and not the slice spacing of the volume node (which may be arbitrarily oriented compared to the slice view plane). For this, you can use the qSlicerSegmentEditorAbstractEffect::sliceSpacing(sliceWidget)
method.