<div dir="ltr"><br><div>I read a series of CT files using:</div><div><br></div><div><div> filename = p;</div><div> vtk.vtkDICOMImageReader VDR = new vtk.vtkDICOMImageReader();</div><div> VDR.SetDirectoryName(p);</div>
<div> VDR.SetDataOrigin(0, 0, 0);</div><div> VDR.Update();</div><div><div> vtk.vtkImageChangeInformation VIC = new vtk.vtkImageChangeInformation();</div><div> VIC.SetInput(VDR.GetOutput());</div>
<div> VIC.CenterImageOn();</div><div> VIC.Update();</div><div> </div><div> VoxelData = VIC.GetOutput();</div><div> //////////</div><div> spacing = VoxelData.GetSpacing();</div>
<div> int numberofpixels = VoxelData.GetNumberOfPoints();</div><div> dimensions = VoxelData.GetDimensions();</div><div> metaScalarRange = VoxelData.GetScalarRange();</div><div> double[] origin = VoxelData.GetOrigin();</div>
<div><br></div><div> info = new StringBuilder("\r\n VTK Dicom dir read, parameters: \r\n");</div><div> info.Append("Volume dimensions : " + dimensions[0] + " " + dimensions[1] + " " + dimensions[2] + "\r\n");</div>
<div> info.Append("Volume scales : " + spacing[0] + " " + spacing[1] + " " + spacing[2] + "\r\n");</div><div> info.Append("Scalar range : " + metaScalarRange[0] + " " + metaScalarRange[1] + "\r\n");</div>
<div> info.Append("Volume origin: " + origin[0] + " " + origin[1] + " " + origin[2] + "\r\n");</div><div> info.Append("Number of Pixels : " + numberofpixels + "\r\n");</div>
</div><div><br></div><div>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 .</div>
<div><br></div><div><br></div><div>Best regards </div><div><br></div><div><br></div></div></div>