[vtkusers] Create a volume from Visible Human male frozen CT

Negro soy at elgilbert.net
Thu Jan 27 12:32:34 EST 2005


Hello vtk users,  I am trying to read data from Visible Human male frozen CT 
(c_vmXXXX.fro.Z) to create a volume but I don't get it. I know that the 
data are compressed and all the theirs characteristics 
(Dimension(512x512), Pixel size (0.5,0.5), etc ... ). I am trying it 
with vtkGESignaReader, but i don´t know if I lack some parameter.
I am working on windows 2000, jdk 1.4 and vtk 4.2, this is the code portion.

      vtkGESignaReader gSE = new vtkGESignaReader();
      gSE.SetFileName("/c_vm1006.fro.Z");
      gSE.SetHeaderSize(3416);
      gSE.SetDataSpacing(0.5,0.5 ,1);
      gSE.SetDataScalarTypeToUnsignedShort();
      gSE.SetDataByteOrderToLittleEndian();
      //gSE.SwapBytesOn();
      vtkActor actorN = new vtkActor();
      vtkDataSetMapper mapper = new vtkDataSetMapper();
      mapper.SetInput(gSE.GetOutput());
      actorN.SetMapper(mapper);
      vtkProperty actorProperty = new vtkProperty();
      actorN.SetProperty(actorProperty);
      m_renPanel.setActor(actorN);
Please, someone could help telling me that I don't have correct or that 
I lack.
Thank you in advance.
Alberto.













More information about the vtkusers mailing list