Hello,<br><br>I am trying to read Analyze 7.5 images using ITK, however I am getting segfault. Here is the relevant code:<br><br> typedef unsigned char PixelType;<br> const unsigned int Dimension = 3;<br>
typedef itk::Image< PixelType, Dimension > ImageType;<br> <br> typedef itk::ImageSeriesReader< ImageType > ReaderType;<br> <br> ReaderType::Pointer reader = ReaderType::New();<br>
<br> typedef itk::NumericSeriesFileNames NameGeneratorType;<br> NameGeneratorType::Pointer nameGenerator = NameGeneratorType::New();<br><br> nameGenerator->SetSeriesFormat( "/root/Desktop/default_10-v1.0.3/default_10-v1.0.3/phantom_01/clean/dwi-%02d.hdr" );<br>
<div id=":uu" class="ii gt">
<br> nameGenerator->SetStartIndex( 0 );<br> nameGenerator->SetEndIndex( 66 );<br> nameGenerator->SetIncrementIndex( 1 );<br> <br> reader->SetImageIO( itk::AnalyzeImageIO::New() );<br>
<br> reader->SetFileNames( nameGenerator->GetFileNames() );<br> reader->Update();<br><br>I am getting a segmentation fault when the update method is called. Any ideas?<br><br>Thanks in advance,<br>
<br><br clear="all">Ahmet Burak Yoldemi</div>