]> Creatis software - cpPlugins.git/blobdiff - plugins/IO/ImageReader.cxx
...
[cpPlugins.git] / plugins / IO / ImageReader.cxx
index f4639a15678c0466e0b564fa19c8a894b77ed9fa..a54a5409601fae920ee66e4b419aed07f8e8efc1 100644 (file)
@@ -255,29 +255,71 @@ _GD0( itk::ImageIOBase* io )
   }
   else if( pt == itk::ImageIOBase::COMPLEX )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< std::complex< float >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::DOUBLE ) success = this->_GD1< std::complex< double >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::COVARIANTVECTOR )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::CovariantVector< float, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::CovariantVector< double, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::POINT )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Point< float, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Point< double, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::VECTOR )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Vector< float, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Vector< double, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::SYMMETRICSECONDRANKTENSOR )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::SymmetricSecondRankTensor< float, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::SymmetricSecondRankTensor< double, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::DIFFUSIONTENSOR3D )
   {
     if( _Dim == 3 )
     {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+      if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::DiffusionTensor3D< float >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+      if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::DiffusionTensor3D< double >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
     }
     else
       this->_Error( "DiffusionTensor3D dimension not supported." );
   }
   else if( pt == itk::ImageIOBase::MATRIX )
   {
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_float
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Matrix< float, _Dim, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_float
+#ifdef cpPlugins_CONFIG_INTEGER_TYPES_double
+    if( ct == itk::ImageIOBase::FLOAT ) success = this->_GD1< itk::Matrix< double, _Dim, _Dim >, _Dim >( io );
+#endif // cpPlugins_CONFIG_INTEGER_TYPES_double
   }
   else if( pt == itk::ImageIOBase::OFFSET )
   {
@@ -285,7 +327,7 @@ _GD0( itk::ImageIOBase* io )
   }
   else if( pt == itk::ImageIOBase::FIXEDARRAY )
   {
-  }
+  } // fi
   return( success );
 }