[Insight-users] errors when run DicomSeriesReadSeriesWrite.cxx

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Mon Jan 28 03:20:00 EST 2013


Hi there,
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.

You should either provide a filename or set the folder as in the example:

https://github.com/Kitware/ITK/blob/master/Examples/IO/DicomSeriesReadSeriesWrite.cxx


Kind regards,
JON HAITZ

<http://www.vicomtech.org/>
Jon Haitz Legarreta GorroñoIkertzailea / Investigador / Researcher
eOsasuna eta Aplikazio Biomedikoak /
eSalud y Aplicaciones Biomedicas / eHealth & Biomedical Applications
Donostia - San Sebastián -
Spain<http://www.vicomtech.es/castellano/html/contacto/index.html>
<http://www.vicomtech.org/>
Tel: +[34] 943 30 92 30jhlegarreta at vicomtech.org
Aviso Legal - Política de
privacidad<http://www.vicomtech.es/castellano/html/informacion_legal/index.html>/
Lege
Oharra - Pribatutasun
politika<http://www.vicomtech.es/euskera/html/informacion_legal/index.html>/
Legal
Notice - Privacy
policy<http://www.vicomtech.es/ingles/html/informacion_legal/index.html>


On 26 January 2013 14:56, Zhao Liz <lizzhao76 at gmail.com> wrote:

> Hi all,
> I am compiling the example DicomSeriesReadSeriesWrite.cxx using ITK
> version 3.20.1.I put the command line like this:
>    //////////////////////////////////////////////////
>   namesGenerator->SetInputDirectory("D:\\103151" );//this is the file
> directory where my MRI images located and the reader read
>    ///////////////////////////////////////
>   const char * outputDirectory = "D:\\DICOM3";//and this is the output
> directory I set
>   itksys::SystemTools::MakeDirectory( outputDirectory );
>    ///////////////////////////////////////
> The codes can be successfully compiled but throw a Exception when I press
> the ctrl+F5.It says:
> "0
> "Exception thrown while writiing the image
>
> "itk::ExceptionObject <00C0F2E4>
> "Location:"void_thiscall itk::ImageSeriesReader<class
> "itk::Image<short,3>>::GenerateOutputInformation<void>"
> "File:d:\visual studio
> 2008\projects\sereswrite\bin\itkImageSeriesReader.txx
> "Line:134
> "Description:itk::ERROR: ImageSeriesReader<005BF1E0>:At least one filename
> is required.
>
> 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!!
>
> Regards
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130128/54a46132/attachment.htm>


More information about the Insight-users mailing list