level 1
dwyhbpwn
楼主
vtkImageData m_img数据变化后,如何让三维图像重新生成,
m_cast = vtkSmartPointer<vtkImageCast>::New();
m_cast->SetInput(m_img);
m_ComositeFun =vtkSmartPointer<vtkVolumeRayCastCompositeFunction>::New();
m_volumeProperty =vtkSmartPointer<vtkVolumeProperty>::New();
m_compositeOpacity = vtkSmartPointer<vtkPiecewiseFunction>::New();
m_color = vtkSmartPointer<vtkColorTransferFunction>::New();
m_renWin = vtkSmartPointer<vtkRenderWindow>::New();
2016年11月17日 02点11分
1
m_cast = vtkSmartPointer<vtkImageCast>::New();
m_cast->SetInput(m_img);
m_ComositeFun =vtkSmartPointer<vtkVolumeRayCastCompositeFunction>::New();
m_volumeProperty =vtkSmartPointer<vtkVolumeProperty>::New();
m_compositeOpacity = vtkSmartPointer<vtkPiecewiseFunction>::New();
m_color = vtkSmartPointer<vtkColorTransferFunction>::New();
m_renWin = vtkSmartPointer<vtkRenderWindow>::New();