How to display the cropVolume fitted with the slice views?

这个被截取后的volume,怎么能最大化在切片视图里显示呢?

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