将VTKLOOVIUTS设置在卷DICOM图像上

Set vtkLookupTable on Volume DICOM Images

本文关键字:DICOM 图像 VTKLOOVIUTS 设置      更新时间:2023-10-16

我在医疗项目中获得了MIP(最大强度投影)和其他卷,用于查看dicom图像。为了制作我使用的卷:

  • vtkVolume

  • vtkSmartVolumeMapper

我需要将vtkLookupTable设置为卷,但找不到适当的方法。有更多经验的人可以向我解释我如何在vtkSmartVolumeMapper

上添加/设置/更改vtkLookupTable

您可以检查类vtkdiscretizablecolortransferfunction

这是VTKColorTransferFunction和Vtklookupt的组合。

,例如

vtkSmartPointer<vtkDiscretizableColorTransferFunction> discretizableColorTransferFunction = 
vtkSmartPointer<vtkDiscretizableColorTransferFunction>::New();
discretizableColorTransferFunction->DiscretizeOn();
discretizableColorTransferFunction->SetNumberOfValues(10);
discretizableColorTransferFunction->AddRGBPoint(10.0, 0, 1, 0);
discretizableColorTransferFunction->Build();
volumeProperty->SetColor(discretizableColorTransferFunction);
volume->SetProperty(volumeProperty);