[Insight-users] ImageSeriesReader crashing under OSX 10.5
(Leopard)
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Nov 13 12:08:32 EST 2007
On Nov 13, 2007 5:04 AM, Matthias Schabel <mschabel at ucair.med.utah.edu> wrote:
> Compiling ITK from current CVS using default build settings and running the
> following code :
>
>
> std::cout << "Loading DICOM data for : " <<
> std::endl;
>
>
> for (std::vector<std::string>::const_iterator
> it=currentFrameFilenameList.begin();it!=currentFrameFilenameList.end();++it)
> std::cout << *it << std::endl;
>
>
> //dce.loadDicomData(currentFrameFilenameList);
>
>
> // set up ITK DICOM image series reader
> typedef itk::Image<short,3> input_image_type;
> typedef itk::Image<float,3> output_image_type;
>
> typedef itk::ImageSeriesReader<input_image_type>
> image_series_reader_type;
> typedef image_series_reader_type::Pointer
> image_series_reader_pointer_type;
>
>
> image_series_reader_pointer_type reader =
> image_series_reader_type::New();
>
>
> std::cout << "Loading files : "
> << currentFrameFilenameList.front() << " -
> " << currentFrameFilenameList.back()
> << "...";
>
>
> reader->SetFileNames(currentFrameFilenameList);
>
>
> reader->SetDebug(true);
>
>
> try
> {
> reader->Update();
> }
> catch (itk::ExceptionObject& e)
> {
> std::cerr << "exception in file reader " <<
> std::endl;
> std::cerr << e << std::endl;
>
>
> //throw;
> return -1;
> }
>
>
> std::cout << "...done with DICOM load." <<
> std::endl;
>
> results in this output :
>
>
> Loading DICOM data for :
> ./20051110/DCE/IM-0018-0001.dcm
> ./20051110/DCE/IM-0018-0002.dcm
> ./20051110/DCE/IM-0018-0003.dcm
> ./20051110/DCE/IM-0018-0004.dcm
> ./20051110/DCE/IM-0018-0005.dcm
> ./20051110/DCE/IM-0018-0006.dcm
> ./20051110/DCE/IM-0018-0007.dcm
> ./20051110/DCE/IM-0018-0008.dcm
> ./20051110/DCE/IM-0018-0009.dcm
> ./20051110/DCE/IM-0018-0010.dcm
> ./20051110/DCE/IM-0018-0011.dcm
> ./20051110/DCE/IM-0018-0012.dcm
> ./20051110/DCE/IM-0018-0013.dcm
> ./20051110/DCE/IM-0018-0014.dcm
> ./20051110/DCE/IM-0018-0015.dcm
> ./20051110/DCE/IM-0018-0016.dcm
>
> followed by EXC_BAD_ACCESS in itk::ImageBase<3u>::UpdateOutputInformation.
> No exception is thrown, and the crash is reproducible - files listed are
> present in the appropriate directory and are valid DICOM files. The same
> code executed without problems under OSX 10.4. The problem is reproducible,
> and occurs in ITK releases 3.2.0 and 3.4.0 as well as current CVS. I am
> running on an 8-core Mac Pro. Any ideas on what's going on here?
Hi Matthias
Can you send me the c++ code and the DICOM files ?
Thanks,
--
Mathieu
More information about the Insight-users
mailing list