How to display the cropVolume fitted with the slice views?


The volume extracted from CropVolume module, how to display it fitted with the slices( Maximize the volume to full slices view)? I want to python code.Like follow:

In recent Slicer Preview Releases (that soon will become the current stable release), volumes are fit to views by default when you show them, but you can fit them manually anytime using setSliceViewerLayers function as shown here.

1 Like