]> Creatis software - FrontAlgorithms.git/blobdiff - plugins/Plugins/SimpleImageNeighborhood.cxx
...
[FrontAlgorithms.git] / plugins / Plugins / SimpleImageNeighborhood.cxx
index 0fc9837f74065bb80202e416c8428b2de9e9ec1a..3d3e9436873e9785817632190b91f013424c795e 100644 (file)
@@ -1,8 +1,9 @@
-#include <plugins/Plugins/SimpleImageNeighborhood.h>
-#include <cpPlugins/DataObjects/Image.h>
+#include <Plugins/SimpleImageNeighborhood.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
 
+#include <itkImage.h>
 #include <fpa/Image/Functors/SimpleNeighborhood.h>
-#include <fpa/Image/Functors/SimpleNeighborhood.hxx>
 
 // -------------------------------------------------------------------------
 fpaPlugins::SimpleImageNeighborhood::
@@ -10,13 +11,12 @@ SimpleImageNeighborhood( )
   : Superclass( )
 {
   typedef cpPlugins::BaseObjects::DataObject _TData;
-  typedef cpPlugins::DataObjects::Image _TImage;
+  typedef cpInstances::Image _TImage;
 
   this->_ConfigureInput< _TImage >( "Input", true, false );
   this->_ConfigureOutput< _TData >( "Output" );
 
-  this->m_Parameters.ConfigureAsUint( "Order" );
-  this->m_Parameters.SetUint( "Order", 1 );
+  this->m_Parameters.ConfigureAsUint( "Order", 1 );
 }
 
 // -------------------------------------------------------------------------
@@ -30,8 +30,8 @@ void fpaPlugins::SimpleImageNeighborhood::
 _GenerateData( )
 {
   auto o = this->GetInputData( "Input" );
-  cpPlugins_Demangle_ImageProcessDims( o, _GD0 );
-  else this->_Error( "Invalid input image." );
+  cpPlugins_Demangle_Image_ScalarPixels_AllDims_1( o, _GD0 )
+    this->_Error( "Invalid input image." );
 }
 
 // -------------------------------------------------------------------------