<div dir="ltr"><div><div><div><div><div><div>Hi Flaviu,<br><br></div>it seems like you are expecting the reader to look for a series of individual<br></div>slice files within a directory, but maybe you are just trying to read a single<br></div>volume in one file.  Try this:<br><br></div><div>if( reader->CanReadFile( "your_file.dcm" ) )<br>{<br></div>  reader->SetFileName( "your_file.dcm" );<br></div>  reader->Update();<br></div>  // do other stuff ...<br><div><div><div>}<br><br></div><div>- Dean<br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 14, 2016 at 9:14 AM, Flaviu2 via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div>  Hi all of you. I have a very simple code:</div><div><br></div><div dir="ltr"> vtkSmartPointer<vtkDICOMImageReader> reader =<br>  vtkSmartPointer<vtkDICOMImageReader>::New();<br> reader->SetDirectoryName(_T("D:\\Tempx\\Birtoc\\"));<br> reader->Update();</div><div dir="ltr"><br></div><div dir="ltr">"Birtoc" is a CT series, axial, 125, with 778 images. But the program get me an error:</div><div dir="ltr"><br></div><div dir="ltr"><font color="#9d1811">ERROR: In ..\..\..\IO\Image\vtkDICOMImageReader.cxx, line 333<br>vtkDICOMImageReader (032F3428): There was a problem retrieving data from: D:\Tempx\Birtoc\/001_2300802301961 _BIRTOC MARIA.dcm</font><br></div><div dir="ltr"><br></div><div dir="ltr"><font color="#9d1811">ERROR: In ..\..\..\Common\ExecutionModel\vtkExecutive.cxx, line 784<br>vtkCompositeDataPipeline (032F4260): Algorithm vtkDICOMImageReader(032F3428) returned failure for request: vtkInformation (03300D30)</font><br></div><div dir="ltr"><br></div><div dir="ltr">  Debug: Off<br>  Modified Time: 135<br>  Reference Count: 1<br>  Registered Events: (none)<br>  Request: REQUEST_DATA<br>  FORWARD_DIRECTION: 0<br>  ALGORITHM_AFTER_FORWARD: 1<br>  FROM_OUTPUT_PORT: 0<br></div><div dir="ltr"><br></div><div dir="ltr">My question is: I have done something wrong ? I mention that on other CT series, I have not any error ... can you help me ? I am stuck here ...</div><div dir="ltr"><br></div><div dir="ltr">Flaviu.<br></div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>