[Insight-users] segmentation fault with itkImageSeriesReader
Andinet Enquobahrie
andinet.enqu at kitware.com
Mon Feb 6 11:16:49 EST 2006
>/** Include headers. */
>#include "itkImageSeriesReader.h"
>
>int main( int argc, char *argv[] )
>{
> FileNamesContainer filenames;
> //std::vector< std::string > filenames;
> filenames.resize( 2 );
> filenames.push_back( "bla" );
>
> /** Return a value. */
> return 0;
>
>} // end main
>
>
Hello Marius,
The minimal example you have posted is not correctly constructed.. May
be you are cutting out lots of details..can you run the following
modified example which is complete and let us know if you still get seg
fault on your machine
-Andinet
#include "itkImageSeriesReader.h"
int main( int argc , char * argv [] )
{
typedef itk::Image< unsigned char> ImageType;
typedef itk::ImageSeriesReader< ImageType > ReaderType;
typedef ReaderType::FileNamesContainer
FileNamesContainer;
FileNamesContainer filenames;
filenames.push_back("bla");
return 0;
}
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list