Operating system: windows 10
Slicer version: 4.11
Expected behavior: would like to control enable/disable the option of “interpolated cropped”
Actual behavior:
I am doing cropping volumes via python coding, use the following code to reach “cropvolume” ==>
cropVolumeNode = slicer.vtkMRMLCropVolumeParametersNode()
cropVolumeNode.SetScene(slicer.mrmlScene)
cropVolumeNode.SetIsotropicResampling(True)
cropVolumeNode.SetSpacingScalingConst(1.0)
slicer.mrmlScene.AddNode(cropVolumeNode)
cropVolumeNode.SetName(‘NewlyCropped’)
so here how disable/enable the interpolation option for the cropvolume?
Still get some issues with cropvolume while applying it via python-coding.
So what’s the best way or is there a quick way for users to check some ENUM or dictionary values? For example here, self.cropVolumeParametersNode.SetInterpolationMode(v_interpolation)
v_interpolation might be 0, 1, 2, 3, 4
How/where to check what interpolate-method each value represents? Say, here
enum
{
FitROIAlignToVolume = 0, ///< Before resizing the ROI, ROI orientation is adjusted to align with the axes of the input volume
FitROIAlignToWorld = 1, ///< Before resizing the ROI, ROI orientation is adjusted to align with the world coordinate system axes
FitROIKeepOrientation = 2, ///< The ROI orientation is not modified during fitting
FitROI_Last ///< PositionStatus_Last: indicates the end of the enum (int first = 0, int last = FitROI_Last)
};