<div dir="ltr">It means, the file is not a Dicom image file (.DS_Store).<br><br>Jothy<br><br><div class="gmail_quote">On Fri, Jun 25, 2010 at 2:48 PM, Preeti Bindu <span dir="ltr">&lt;<a href="mailto:preetibindu@gmail.com">preetibindu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br><br>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 <br>
<br>ERROR: In /Users/pebble/Development/VTK/IO/vtkDICOMImageReader.cxx, line 120<br>
vtkDICOMImageReader (0xe3e400): DICOMParser couldn&#39;t parse : /Users/pebble/Desktop/dicom/.DS_Store<br><br>The code goes as follows: <br><br>vtkDICOMImageReader *reader = vtkDICOMImageReader :: New();<br>  reader-&gt; SetDirectoryName(&quot;/Users/pebble/Desktop/dicom&quot;);<br>

  reader-&gt; Update();<br>  <br>  vtkImageViewer2 *viewer = vtkImageViewer2 :: New();<br>  viewer-&gt; SetInput(reader-&gt;GetOutput());<br>  <br>  int NoOfImages = viewer-&gt; GetWholeZMax();<br>  <br>  for (int i=0; i&lt;=NoOfImages; ++i)<br>

  {<br>    viewer-&gt; SetZSlice(i);<br>    viewer-&gt; Render();<br>  }<br><br>Can somebody tell me what&#39;s going wrong?<br><br>Thanks, <br clear="all"><br>-- <br>Regards,<br><font color="#888888">Preeti Bindu<br><br>

</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>