[vtkusers] help
陆阳
thuluyang at gmail.com
Thu Sep 9 08:20:00 EDT 2010
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
Department of Biomedical Engineering,
School of Medicine, Tsinghua University
电话/Tel:+86-010-51532315
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100909/2507be0b/attachment.htm>
More information about the vtkusers
mailing list