[vtkusers] meshing vtkvolume
Ali Habib
ali.mahmoud.habib at gmail.com
Tue Oct 20 16:54:10 EDT 2009
I read a series of CT files using:
filename = p;
vtk.vtkDICOMImageReader VDR = new vtk.vtkDICOMImageReader();
VDR.SetDirectoryName(p);
VDR.SetDataOrigin(0, 0, 0);
VDR.Update();
vtk.vtkImageChangeInformation VIC = new
vtk.vtkImageChangeInformation();
VIC.SetInput(VDR.GetOutput());
VIC.CenterImageOn();
VIC.Update();
VoxelData = VIC.GetOutput();
//////////
spacing = VoxelData.GetSpacing();
int numberofpixels = VoxelData.GetNumberOfPoints();
dimensions = VoxelData.GetDimensions();
metaScalarRange = VoxelData.GetScalarRange();
double[] origin = VoxelData.GetOrigin();
info = new StringBuilder("\r\n VTK Dicom dir read, parameters:
\r\n");
info.Append("Volume dimensions : " + dimensions[0] + " " +
dimensions[1] + " " + dimensions[2] + "\r\n");
info.Append("Volume scales : " + spacing[0] + " " + spacing[1] +
" " + spacing[2] + "\r\n");
info.Append("Scalar range : " + metaScalarRange[0] + " " +
metaScalarRange[1] + "\r\n");
info.Append("Volume origin: " + origin[0] + " " + origin[1] + "
" + origin[2] + "\r\n");
info.Append("Number of Pixels : " + numberofpixels + "\r\n");
then I used it to create volume for further rendering, I want to mesh this
volume ( create Finite element mesh on it ), I saw a lot of suggestions, but
most of them suggest to take part of it .
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091020/d105c826/attachment.htm>
More information about the vtkusers
mailing list