<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div>Thank you Dean, I will try to do that.</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Tuesday, June 14, 2016 4:43 PM, Dean Inglis <inglis.dl@gmail.com> wrote:<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv3041423517"><div><div dir="ltr"><div><div><div><div><div><div>Hi Flaviu,<br clear="none"><br clear="none"></div>it seems like you are expecting the reader to look for a series of individual<br clear="none"></div>slice files within a directory, but maybe you are just trying to read a single<br clear="none"></div>volume in one file. Try this:<br clear="none"><br clear="none"></div><div>if( reader->CanReadFile( "your_file.dcm" ) )<br clear="none">{<br clear="none"></div> reader->SetFileName( "your_file.dcm" );<br clear="none"></div> reader->Update();<br clear="none"></div> // do other stuff ...<br clear="none"><div><div><div>}<br clear="none"><br clear="none"></div><div>- Dean<br clear="none"><br clear="none"></div></div></div></div><div class="yiv3041423517gmail_extra"><br clear="none"><div class="yiv3041423517gmail_quote">On Tue, Jun 14, 2016 at 9:14 AM, Flaviu2 via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank" rel="nofollow" shape="rect" ymailto="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>></span> wrote:<br clear="none"><blockquote class="yiv3041423517gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv3041423517yqt8727166434" id="yiv3041423517yqt64660"><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 clear="none"></div><div dir="ltr"> vtkSmartPointer<vtkDICOMImageReader> reader =<br clear="none"> vtkSmartPointer<vtkDICOMImageReader>::New();<br clear="none"> reader->SetDirectoryName(_T("D:\\Tempx\\Birtoc\\"));<br clear="none"> reader->Update();</div><div dir="ltr"><br clear="none"></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 clear="none"></div><div dir="ltr"><font color="#9d1811">ERROR: In ..\..\..\IO\Image\vtkDICOMImageReader.cxx, line 333<br clear="none">vtkDICOMImageReader (032F3428): There was a problem retrieving data from: D:\Tempx\Birtoc\/001_2300802301961 _BIRTOC MARIA.dcm</font><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><font color="#9d1811">ERROR: In ..\..\..\Common\ExecutionModel\vtkExecutive.cxx, line 784<br clear="none">vtkCompositeDataPipeline (032F4260): Algorithm vtkDICOMImageReader(032F3428) returned failure for request: vtkInformation (03300D30)</font><br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"> Debug: Off<br clear="none"> Modified Time: 135<br clear="none"> Reference Count: 1<br clear="none"> Registered Events: (none)<br clear="none"> Request: REQUEST_DATA<br clear="none"> FORWARD_DIRECTION: 0<br clear="none"> ALGORITHM_AFTER_FORWARD: 1<br clear="none"> FROM_OUTPUT_PORT: 0<br clear="none"></div><div dir="ltr"><br clear="none"></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 clear="none"></div><div dir="ltr">Flaviu.<br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow" shape="rect">http://www.kitware.com/</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" shape="rect">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank" rel="nofollow" shape="rect">http://www.vtk.org/Wiki/VTK_FAQ</a><br clear="none">
<br clear="none">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank" rel="nofollow" shape="rect">http://markmail.org/search/?q=vtkusers</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" shape="rect">http://public.kitware.com/mailman/listinfo/vtkusers</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div></div></body></html>