<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->SetInputDirectory("D:\\103151" );//this is the file directory where my MRI images located and the reader read<br></div><div> ///////////////////////////////////////<br></div><div> const char * outputDirectory = "D:\\DICOM3";//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>"0</div><div>"Exception thrown while writiing the image</div><div><br></div><div>"itk::ExceptionObject <00C0F2E4></div><div>"Location:"void_thiscall itk::ImageSeriesReader<class "itk::Image<short,3>>::GenerateOutputInformation<void>"</div>
<div>"File:d:\visual studio 2008\projects\sereswrite\bin\itkImageSeriesReader.txx</div><div>"Line:134</div><div>"Description:itk::ERROR: ImageSeriesReader<005BF1E0>: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"D:\\103151"is clearly not.Can anybody tell me why? And what's the problem at all?Thank u!!</div><div style><br></div>
<div style>Regards</div></div>