]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Tue, 7 Feb 2017 14:03:01 +0000 (09:03 -0500)
committerLeonardo Flórez-Valencia <florez-l@javeriana.edu.co>
Tue, 7 Feb 2017 14:03:01 +0000 (09:03 -0500)
plugins/CMakeLists.txt
plugins/ImageAlgorithms/MoriRegionGrow.cxx

index 3f7acfeec58e80ea25aefef8ea30beadc5403222..9c2c3db8332d05ec3067310e689f0cd9f22873d9 100644 (file)
@@ -31,7 +31,11 @@ IF(USE_cpPlugins)
       ${fpa_AllInstances}
       )
   ENDFOREACH(_d)
-  TARGET_LINK_LIBRARIES(fpaPluginsImageAlgorithms fpaPluginsDijkstraFunctors)
+  TARGET_LINK_LIBRARIES(
+    fpaPluginsImageAlgorithms
+    fpaPluginsRegionGrowFunctors
+    fpaPluginsDijkstraFunctors
+    )
 
 ENDIF(USE_cpPlugins)
 
index c12e855fbf6d164a77f1ae7fd64b349eb9424ba4..1a499791e8794bdd46a1f9620ca3a69e33f04041 100644 (file)
@@ -13,9 +13,10 @@ MoriRegionGrow( )
   this->_ConfigureInput< _TData >( "GrowFunction", true, false );
   this->m_Parameters.ConfigureAsInt( "InsideValue", 1 );
   this->m_Parameters.ConfigureAsInt( "OutsideValue", 0 );
-  this->m_Parameters.ConfigureAsInt( "Step", 1 );
-  this->m_Parameters.ConfigureAsReal( "LowerThreshold", 1 );
-  this->m_Parameters.ConfigureAsReal( "UpperThreshold", 1 );
+  this->m_Parameters.ConfigureAsReal( "Step", 1 );
+  this->m_Parameters.ConfigureAsReal( "Lower", 0 );
+  this->m_Parameters.ConfigureAsReal( "Upper", 1 );
+  this->m_Parameters.ConfigureAsReal( "Sensitivity", 1 );
   this->m_Parameters.ConfigureAsIntTypesChoices( "ResultType" );
 }
 
@@ -60,13 +61,15 @@ _GD1( _TInputImage* image )
     itk::Image< _TOutputPixel, _TInputImage::ImageDimension >
     _TOutputImage;
   typedef fpa::Image::MoriRegionGrow< _TInputImage, _TOutputImage > _TFilter;
-  typedef typename _TFilter::TGrowFunction                      _TGrow;
 
   auto filter = this->_CreateITK< _TFilter >( );
   this->_ConfigureFilter( filter, image );
-  filter->SetGrowFunction( this->GetInputData< _TGrow >( "GrowFunction" ) );
   filter->SetInsideValue( this->m_Parameters.GetInt( "InsideValue" ) );
   filter->SetOutsideValue( this->m_Parameters.GetInt( "OutsideValue" ) );
+  filter->SetStep( this->m_Parameters.GetReal( "Step" ) );
+  filter->SetLower( this->m_Parameters.GetReal( "Lower" ) );
+  filter->SetUpper( this->m_Parameters.GetReal( "Upper" ) );
+  filter->SetSensitivity( this->m_Parameters.GetReal( "Sensitivity" ) );
   filter->Update( );
   this->GetOutput( "Output" )->SetITK( filter->GetOutput( ) );
 }