]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Plugins/BasicFilters/FloodFillImageFilter.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / FloodFillImageFilter.cxx
index 71f90cc70e8876b1bf374f5daaddf533a1cb900c..98b9e5864c92eb4540ddd70be56023ea3cf46b68 100644 (file)
@@ -1,5 +1,6 @@
 #include "FloodFillImageFilter.h"
 #include <cpPlugins/Interface/Image.h>
+#include <cpPlugins/Interface/PointList.h>
 
 #include <itkFloodFilledImageFunctionConditionalConstIterator.h>
 #include <itkImageFunction.h>
@@ -9,15 +10,21 @@ cpPlugins::BasicFilters::FloodFillImageFilter::
 FloodFillImageFilter( )
   : Superclass( )
 {
+  /* TODO
   this->_AddInput( "Input" );
-  this->_MakeOutput< cpPlugins::Interface::Image >( "Output" );
-
-  double seed[ 3 ] = { double( 0 ) };
-  this->m_Parameters->ConfigureAsPoint( "Seed", 3, seed );
-  this->m_Parameters->ConfigureAsReal( "Window", 0 );
-  this->m_Parameters->ConfigureAsReal( "Level", 0 );
-  this->m_Parameters->ConfigureAsUint( "InsideValue", 0 );
-  this->m_Parameters->ConfigureAsUint( "OutsideValue", 255 );
+  this->_AddInput( "Seed" );
+  this->_AddOutput< cpPlugins::Interface::Image >( "Output" );
+
+  this->m_Parameters->ConfigureAsReal( "Window" );
+  this->m_Parameters->ConfigureAsReal( "Level" );
+  this->m_Parameters->ConfigureAsUint( "InsideValue" );
+  this->m_Parameters->ConfigureAsUint( "OutsideValue" );
+
+  this->m_Parameters->SetReal( "Window", 0 );
+  this->m_Parameters->SetReal( "Level", 0 );
+  this->m_Parameters->SetUint( "InsideValue", 0 );
+  this->m_Parameters->SetUint( "OutsideValue", 255 );
+  */
 }
 
 // -------------------------------------------------------------------------
@@ -30,6 +37,7 @@ cpPlugins::BasicFilters::FloodFillImageFilter::
 std::string cpPlugins::BasicFilters::FloodFillImageFilter::
 _GenerateData( )
 {
+  /* TODO
   cpPlugins::Interface::Image* image =
     this->GetInput< cpPlugins::Interface::Image >( "Input" );
   if( image == NULL )
@@ -41,6 +49,8 @@ _GenerateData( )
   else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 );
   else r = "FloodFillImageFilter: Input image type not supported.";
   return( r );
+  */
+  return( "" );
 }
 
 // -------------------------------------------------------------------------
@@ -48,14 +58,18 @@ template< class I >
 std::string cpPlugins::BasicFilters::FloodFillImageFilter::
 _GD0( itk::DataObject* image )
 {
+  /* TODO
   return(
     this->_RealGD< I, itk::Image< unsigned char, I::ImageDimension > >(
       image
       )
     );
+  */
+  return( "" );
 }
 
 // -------------------------------------------------------------------------
+/* TODO
 template< class I, class R = float >
 class cpPlugins_BasicFilters_FloodFillImageFilter_Function
   : public itk::ImageFunction< I, bool, R >
@@ -139,12 +153,14 @@ protected:
   mutable unsigned char m_StartValue;
   mutable bool m_Start;
 };
+*/
 
 // -------------------------------------------------------------------------
 template< class I, class O >
 inline std::string cpPlugins::BasicFilters::FloodFillImageFilter::
 _RealGD( itk::DataObject* image )
 {
+  /* TODO
   typedef typename O::PixelType _OP;
   typedef cpPlugins_BasicFilters_FloodFillImageFilter_Function< I > _F;
   typedef itk::FloodFilledImageFunctionConditionalConstIterator< I, _F > _It;
@@ -192,6 +208,8 @@ _RealGD( itk::DataObject* image )
   }
   else
     return( "FloodFillImageFilter: output not correctly created." );
+  */
+  return( "" );
 }
 
 // eof - $RCSfile$