<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 style>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 style><br></div>
<div style>Regards</div></div>