[vtk-developers] help
David Doria
daviddoria+vtk at gmail.com
Thu Sep 9 05:42:59 EDT 2010
2010/9/9 陆阳 <thuluyang at gmail.com>:
> hello,sorry to interupt you .
> but i have a really important question.i am asking you for help.
> i am a new learner of vtk.
> recently,i am using vtk to do 3d reconstruction.
> i am using mip(maximum intenstity projection ) to do this.
> first reading some silces of ct dicom image,then do the projection.
> as you know vtk is using pipeline ,we can only get 3d volume.
> but what i want is the 2d image by MIP.
> i dont know if i make myself understood by you? my english is poor.
> here is the main code:
> //read the dicoms
> vtkDICOMImageReader *volumeReader = vtkDICOMImageReader::New();
> volumeReader->SetDirectoryName("C:/mrdata");
> vtkImageShiftScale *scale=vtkImageShiftScale::New();
> scale->SetInput(volumeReader->GetOutput());
> scale->SetOutputScalarTypeToUnsignedChar();
> scale->Update();
> vtkVolumeRayCastMIPFunction *MIP = vtkVolumeRayCastMIPFunction::New();
> vtkVolumeRayCastMapper *RaycastMapper = vtkVolumeRayCastMapper::New();
> RaycastMapper->SetVolumeRayCastFunction(MIP);
> RaycastMapper->SetInput(scale->GetOutput());
> here is the case, where i can get the 2d image i want?
> i couldnot find any interface.but i think the image should be the output of
> RaycastMapper?
> the pity is i cant find any output of RaycastMapper.
> could you give me some suggestions?
> --
> 陆阳
> 清华大学医学院生物医学工程系
> Yang Lu
Hi Yang,
Unfortunately I don't have an answer for you, but I'd suggest you post
this question to the VTK users list:
http://www.vtk.org/mailman/listinfo/vtkusers
The developers list is for questions about writing new code for VTK
while the users list is about using existing code in VTK.
Good luck!
David
More information about the vtk-developers
mailing list