[vtkusers] Error While Reading DICOM Images

Jothy jothybasu at gmail.com
Fri Jun 25 09:51:00 EDT 2010


It means, the file is not a Dicom image file (.DS_Store).

Jothy

On Fri, Jun 25, 2010 at 2:48 PM, Preeti Bindu <preetibindu at gmail.com> wrote:

> Hi,
>
> I am trying to read and display a series of DICOM images. When I build the
> code there is no error but during runtime the vtkDICOMImageReader has an
> error saying
>
> ERROR: In /Users/pebble/Development/VTK/IO/vtkDICOMImageReader.cxx, line
> 120
> vtkDICOMImageReader (0xe3e400): DICOMParser couldn't parse :
> /Users/pebble/Desktop/dicom/.DS_Store
>
> The code goes as follows:
>
> vtkDICOMImageReader *reader = vtkDICOMImageReader :: New();
>   reader-> SetDirectoryName("/Users/pebble/Desktop/dicom");
>   reader-> Update();
>
>   vtkImageViewer2 *viewer = vtkImageViewer2 :: New();
>   viewer-> SetInput(reader->GetOutput());
>
>   int NoOfImages = viewer-> GetWholeZMax();
>
>   for (int i=0; i<=NoOfImages; ++i)
>   {
>     viewer-> SetZSlice(i);
>     viewer-> Render();
>   }
>
> Can somebody tell me what's going wrong?
>
> Thanks,
>
> --
> Regards,
> Preeti Bindu
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100625/762cd765/attachment.htm>


More information about the vtkusers mailing list