<div dir="ltr"><div><div>Hi there,<br></div>well, the error does not say that either the input or output folders are invalid or do not exist; it says that the reader is lacking a filename.<br><br>You should either provide a filename or set the folder as in the example:<br>
<br><a href="https://github.com/Kitware/ITK/blob/master/Examples/IO/DicomSeriesReadSeriesWrite.cxx">https://github.com/Kitware/ITK/blob/master/Examples/IO/DicomSeriesReadSeriesWrite.cxx</a><br><br><br></div>Kind regards,<br>
JON HAITZ<br></div><div class="gmail_extra"><br clear="all"><div><table border="0" cellpadding="0" cellspacing="0" align="center"><tbody><tr><td><table style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" border="0" cellpadding="0" width="100%">
<tbody><tr><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff"><div align="left"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/logovicomtech_150.png" longdesc="http://Visual+Interaction+Communication+Technologies" border="0" height="150" width="211"></a></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"><tbody><tr><td><table border="0" cellpadding="0" align="center">
<tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif;font-weight:bold">Jon Haitz Legarreta Gorrońo</span></td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Ikertzailea / Investigador / Researcher</span></td>
</tr><tr><td>
<span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">
eOsasuna eta Aplikazio Biomedikoak / eSalud y Aplicaciones Biomedicas / eHealth &amp; Biomedical Applications
</span>
</td></tr><tr><td><table border="0" cellpadding="0" width="100%" align="left"><tbody><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/contacto/index.html" target="_blank">Donostia - San Sebastián - Spain</a></span></td>
<td rowspan="3" style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9" align="right"><div align="right"><a href="http://www.vicomtech.org/" target="_blank"><img src="http://www.vicomtech.es/firmas/html/ojo.png" longdesc="http://Visual+Interaction+Communication+Technologies+-+IK4+Research+Alliance" border="0" height="74" width="104"></a></div>
</td></tr><tr><td><span style="font-size:10px;color:white;font-family:Verdana,Arial,Helvetica,sans-serif">Tel: +[34] 943 30 92 30</span></td></tr><tr><td><span style="font-size:10px;color:blue;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a></span></td>
</tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td><td style="border-width:0px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#00abc9"><div align="center"><img src="http://www.vicomtech.es/firmas/html/barraSinFondo_150.png" border="0" height="150" width="10"></div>
</td><td style="border-width:1px;border-color:#00abc9;border-collapse:collapse;border-style:solid;background-color:#ffffff"><div align="left"><img src="http://www.vicomtech.es/firmas/html/GraphicsMediaNet-IK4_150.png" longdesc="http://International+Network+for+the+Cooperation+in+Applied+Research+in+Computer+Graphics,+Multimoda-Multimedia+Technologies+and+Visual+Interactive+Digital+Media+Technologies+-+IK4+Research+Alliance" usemap="#SafeHtmlFilter_graphicsmedia-ik4" border="0" height="150" width="211"><map name="SafeHtmlFilter_graphicsmedia-ik4"><area shape="rect" coords="0,0,211,75" href="http://www.ik4.es" target="_blank"><area shape="rect" coords="0,75,211,150" href="http://www.graphicsmedia.net/" target="_blank"></map></div>
</td></tr></tbody></table></td></tr><tr><td><table border="0" cellpadding="0" align="center"><tbody><tr><td><span style="font-size:10px;color:gray;font-family:Verdana,Arial,Helvetica,sans-serif"><a href="http://www.vicomtech.es/castellano/html/informacion_legal/index.html" style="color:gray" target="_blank">Aviso Legal - Política de privacidad</a> / <a href="http://www.vicomtech.es/euskera/html/informacion_legal/index.html" style="color:gray" target="_blank">Lege Oharra - Pribatutasun politika</a> / <a href="http://www.vicomtech.es/ingles/html/informacion_legal/index.html" style="color:gray" target="_blank">Legal Notice - Privacy policy</a></span></td>
</tr></tbody></table></td></tr></tbody></table></div>
<br><br><div class="gmail_quote">On 26 January 2013 14:56, Zhao Liz <span dir="ltr">&lt;<a href="mailto:lizzhao76@gmail.com" target="_blank">lizzhao76@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hi all,</div><div>I am compiling the example DicomSeriesReadSeriesWrite.cxx using ITK version 3.20.1.I put the command line like this:</div><div>   //////////////////////////////////////////////////</div>

<div>  namesGenerator-&gt;SetInputDirectory(&quot;D:\\103151&quot; );//this is the file directory where my MRI images located and the reader read<br></div><div>   ///////////////////////////////////////<br></div><div>  const char * outputDirectory = &quot;D:\\DICOM3&quot;;//and this is the output directory I set</div>

<div>  itksys::SystemTools::MakeDirectory( outputDirectory );</div><div>   ///////////////////////////////////////</div><div>The codes can be successfully compiled but throw a Exception when I press the ctrl+F5.It says:</div>

<div>&quot;0</div><div>&quot;Exception thrown while writiing the image</div><div><br></div><div>&quot;itk::ExceptionObject &lt;00C0F2E4&gt;</div><div>&quot;Location:&quot;void_thiscall itk::ImageSeriesReader&lt;class &quot;itk::Image&lt;short,3&gt;&gt;::GenerateOutputInformation&lt;void&gt;&quot;</div>

<div>&quot;File:d:\visual studio 2008\projects\sereswrite\bin\itkImageSeriesReader.txx</div><div>&quot;Line:134</div><div>&quot;Description:itk::ERROR: ImageSeriesReader&lt;005BF1E0&gt;:At least one filename is required.</div>

<div><br></div><div>The error seems to say that my directory is null.But the filename&quot;D:\\103151&quot;is clearly not.Can anybody tell me why? And what&#39;s the problem at all?Thank u!!</div><div><br></div>
<div>Regards</div></div>
<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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>