]> Creatis software - cpPlugins.git/blobdiff - plugins/ImageMeshFilters/RasterMeshFilter.cxx
...
[cpPlugins.git] / plugins / ImageMeshFilters / RasterMeshFilter.cxx
index 8452f2d6568847c0ba6643cadbccfa4115917755..f2226db54b0927c919696a3e2d9e735fc454cc07 100644 (file)
@@ -1,12 +1,9 @@
-#include <plugins/ImageMeshFilters/RasterMeshFilter.h>
+#include <ImageMeshFilters/RasterMeshFilter.h>
 #include <cpPlugins/DataObjects/BoundingBox.h>
 #include <cpPlugins/DataObjects/Mesh.h>
-#include <cpPlugins_ImageIterators.h>
 
 #include <itkTriangleMeshToBinaryImageFilter.h>
 #include <cpExtensions/Algorithms/RasterContourFilter.h>
-#include <itkTriangleMeshToBinaryImageFilter.hxx>
-#include <cpExtensions/Algorithms/RasterContourFilter.hxx>
 
 // -------------------------------------------------------------------------
 cpPluginsImageMeshFilters::RasterMeshFilter::
@@ -21,13 +18,9 @@ RasterMeshFilter( )
   this->_ConfigureInput< _TDataObject >( "Template", false, false );
   this->_ConfigureOutput< _TImage >( "Output" );
 
-  this->m_Parameters.ConfigureAsUint( "InsideValue" );
-  this->m_Parameters.ConfigureAsUint( "OutsideValue" );
-  this->m_Parameters.ConfigureAsUint( "MinimumSize" );
-
-  this->m_Parameters.SetUint( "InsideValue", 1 );
-  this->m_Parameters.SetUint( "OutsideValue", 0 );
-  this->m_Parameters.SetUint( "MinimumSize", 100 );
+  this->m_Parameters.ConfigureAsUint( "InsideValue", 1 );
+  this->m_Parameters.ConfigureAsUint( "OutsideValue", 0 );
+  this->m_Parameters.ConfigureAsUint( "MinimumSize", 100 );
 }
 
 // -------------------------------------------------------------------------
@@ -83,7 +76,7 @@ _GD0_2D( _TMesh* mesh )
   auto filter = this->_CreateITK< _TFilter >( );
   filter->ClearPoints( );
   double pnt[ 3 ];
-  for( unsigned long i = 0; i < mesh->GetNumberOfPoints( ); ++i )
+  for( long i = 0; i < mesh->GetNumberOfPoints( ); ++i )
   {
     mesh->GetPoint( i, pnt );
     filter->AddPoint( pnt[ 0 ], pnt[ 1 ] );