]> Creatis software - creaImageIO.git/commitdiff
#3332 Add niftimage to ReadImages box
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 13 Jun 2024 06:30:17 +0000 (08:30 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Thu, 13 Jun 2024 06:30:17 +0000 (08:30 +0200)
src/creaImageIOImageReader.cpp

index 4eb7fa3047e42f82685e1c9e2f9c3dd6620fc8e6..3dec1c24d80595cba606b7989f1ae5539f7f77a7 100644 (file)
@@ -45,6 +45,8 @@
 #include <vtkBMPReader.h>
 #include <vtkSLCReader.h>
 #include <vtkMetaImageReader.h>
+#include <vtkNIFTIImageReader.h>
+
 //#include <vtkGESignalReader.h>
 
 #include "boost/filesystem/path.hpp"
@@ -68,6 +70,8 @@ namespace creaImageIO
     Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkBMPReader::New(), "BMP", ".bmp")));
     Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkSLCReader::New())));
     Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkMetaImageReader::New(),"MHD",".mhd")));
+    Register(boost::shared_ptr<AbstractImageReader>(new VtkImageReader(vtkNIFTIImageReader::New(),"NIF",".nii.gz")));
+
     //   Register(new VtkImageReader(vtkGESignalReader::New()));
     Register(boost::shared_ptr<AbstractImageReader>(new DicomImageReader));
     Register(boost::shared_ptr<AbstractImageReader>(new UltrasonixImageReader));