<br>Hi Crystal,<br><br>Maybe the problem is that you are trying to see a single image,<br>and you need several to create a volume.<br><br>I have been able to make your code work by just changing the reader to:<br><br>dicomReader = vtk.vtkDICOMImageReader()<br>
#dicomReader.SetDirectoryName('/home-nfs/local/VANDERBILT/lib12/pythonGPUdata/55.dcm')<br>dicomReader.SetDirectoryName('dcmDir')<br>dicomReader.Update()<br>dataSpacing = dicomReader.GetDataSpacing()<br>dimensions = dicomReader.GetOutput().GetDimensions()<br>
print dimensions<br><br>The contents of dcmDir are the images in the file:<br><a href="http://www.vtk.org/Wiki/File:VTK_Examples_StandardFormats_Input_DicomTestImages.zip">http://www.vtk.org/Wiki/File:VTK_Examples_StandardFormats_Input_DicomTestImages.zip</a><br>
<br>I have try to duplicate your image (55.dcm) several times, but it does not work. Maybe the <br>problem is in your data.<br><br>Hope this helps.<br><br>