]> Creatis software - cpPlugins.git/blobdiff - plugins/ITKLevelSetFilters/LaplacianSegmentationLevelSetImageFilter.cxx
...
[cpPlugins.git] / plugins / ITKLevelSetFilters / LaplacianSegmentationLevelSetImageFilter.cxx
index a5fe1f9eb2f3961e5cca66c962dcc7447850cbb1..c45c75a8ef752f6c6b799419dbb8aa18f05b54a5 100644 (file)
@@ -1,5 +1,5 @@
 #include <ITKLevelSetFilters/LaplacianSegmentationLevelSetImageFilter.h>
-#include <cpInstances/Image.h>
+#include <cpInstances/DataObjects/Image.h>
 
 #include <itkLaplacianSegmentationLevelSetImageFilter.h>
 
@@ -8,9 +8,9 @@ cpPluginsITKLevelSetFilters::LaplacianSegmentationLevelSetImageFilter::
 LaplacianSegmentationLevelSetImageFilter( )
   : Superclass( )
 {
-  this->_ConfigureInput< cpInstances::Image >( "Input", true, false );
-  this->_ConfigureInput< cpInstances::Image >( "Feature", true, false );
-  this->_ConfigureOutput< cpInstances::Image >( "Output" );
+  this->_ConfigureInput< cpInstances::DataObjects::Image >( "Input", true, false );
+  this->_ConfigureInput< cpInstances::DataObjects::Image >( "Feature", true, false );
+  this->_ConfigureOutput< cpInstances::DataObjects::Image >( "Output" );
 
   this->m_Parameters.ConfigureAsReal( "PropagationScaling", 1 );
   this->m_Parameters.ConfigureAsReal( "CurvatureScaling", 1 );
@@ -30,8 +30,8 @@ void cpPluginsITKLevelSetFilters::LaplacianSegmentationLevelSetImageFilter::
 _GenerateData( )
 {
   auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 )
-    this->_Error( "Invalid input image dimension." );
+  cpPlugins_Demangle_Image_RealPixels_AllDims_1( o, _GD0 )
+    this->_Error( "Invalid input image." );
 }
 
 // -------------------------------------------------------------------------