[vtkusers] Create a 3d volume using series of DICOM images

terminator vjblog_info at yahoo.com
Sat Jun 9 10:32:09 EDT 2018


Although if you just want to visualize, you can use 3D Slicer (3D slicer uses
VTK).

But in VTK, if you have a vtkImageData (which explained
http://vtk.1045678.n5.nabble.com/Read-Series-of-DICOM-images-td5747695.html),
you just need a Mapper. Creating vtkImageData for mha format is also simply
done by vtkMetaImageReader.

Create an object (mapper) of vtkSmartVolumeMapper, then connect your
vtkImageData output port to mapper input port:
/mapper->SetInputConnection(imageData->GetOutputPort()).
/
Then set vtkVolume mapper to that object. vtkVolume also need a
vtkVolumeProperty object to control colors and opacity.

You can find many examples at https://lorensen.github.io/VTKExamples/site/



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list