[Insight-users] nifti IO

Richard Beare richard.beare at gmail.com
Tue Aug 2 22:30:04 EDT 2005


Hi,
I'm experimenting with the nifti io in the cvs version of ITK. I've
registered the Factory and attempted to write nifti files from a
program that I'm currently using to successfully write tiff and
analyze files. It attempts to write nifti, so my registration seems to
have worked. Is there another step I've missed? The data I'm writing
is 3D, unsigned short. My registration step is:

itk::niftiImageIOFactory::RegisterOneFactory();

gdb output is:

(gdb) where
#0  0x000000329b16fe59 in strncpy () from /lib64/tls/libc.so.6
#1  0x00002aaaaadf0f9d in itk::niftiImageIO::WriteImageInformation ()
   from /home/richardb/local/lib/InsightToolkit/libITKIO.so
#2  0x00002aaaaadf1504 in itk::niftiImageIO::Write ()
   from /home/richardb/local/lib/InsightToolkit/libITKIO.so
#3  0x0000000000429120 in itk::ImageFileWriter<itk::Image<unsigned
short, 3u> >::GenerateData ()
#4  0x0000000000427337 in itk::ImageFileWriter<itk::Image<unsigned
short, 3u> >::Write ()
#5  0x0000000000429d86 in itk::ImageFileWriter<itk::Image<unsigned
short, 3u> >::Update ()
#6  0x000000000041f7fa in main ()

Thanks


More information about the Insight-users mailing list