slicer_window_CT.py source
This example shows how the SlicerWindow can be used to visualize 3 slice planes of a 3D CT volume along with a segmentation.
This example shows how the SlicerWindow can be used to visualize 3 slice planes of a 3D CT volume along with a segmentation.

import fast importer = fast.ImageFileImporter.create(fast.Config.getTestDataPath() + '/CT/CT-Thorax.mhd') segmentation = fast.BinaryThresholding.create(150)\ .connect(importer) fast.SlicerWindow.create()\ .connectImage(importer)\ .connectSegmentation(segmentation, opacity=0.25, borderOpacity=0.75)\ .run()