From c1565f15fd38a5dec91ae9f0b83178c7ccb82548 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Wed, 17 Feb 2016 19:30:42 -0500 Subject: [PATCH] ... --- lib/fpaPlugins/ImageRegionGrow.cxx | 2 +- lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/fpaPlugins/ImageRegionGrow.cxx b/lib/fpaPlugins/ImageRegionGrow.cxx index 07697ce..cc04861 100644 --- a/lib/fpaPlugins/ImageRegionGrow.cxx +++ b/lib/fpaPlugins/ImageRegionGrow.cxx @@ -30,7 +30,7 @@ std::string fpaPlugins::ImageRegionGrow:: _GenerateData( ) { auto input = - this->GetInputData< cpPlugins::Interface::Image >( "Input" ); + this->GetInputData< cpPlugins::Interface::DataObject >( "Input" ); itk::DataObject* image = NULL; std::string r = ""; cpPlugins_Image_Demangle_AllScalarTypes( 2, input, image, r, _GD0 ); diff --git a/lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx b/lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx index 4863f4d..cebd4a2 100644 --- a/lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx +++ b/lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx @@ -17,7 +17,7 @@ ThresholdImageGrowFunctionSource( ) this->m_Parameters->ConfigureAsReal( "UpperThreshold" ); this->m_Parameters->SetReal( "LowerThreshold", 0 ); - this->m_Parameters->SetReal( "UpperThreshold", 0 ); + this->m_Parameters->SetReal( "UpperThreshold", 1 ); } // ------------------------------------------------------------------------- @@ -31,13 +31,12 @@ std::string fpaPlugins::ThresholdImageGrowFunctionSource:: _GenerateData( ) { auto image = - this->GetInputData< cpPlugins::Interface::Image >( "ReferenceImage" ); + this->GetInputData< cpPlugins::Interface::DataObject >( "ReferenceImage" ); itk::DataObject* itk_image = NULL; std::string r = ""; cpPlugins_Image_Demangle_AllScalarTypes( 2, image, itk_image, r, _GD0 ); else cpPlugins_Image_Demangle_AllScalarTypes( 3, image, itk_image, r, _GD0 ); else r = "fpaPlugins::ThresholdImageGrowFunctionSource: no valid reference image."; - return( r ); } -- 2.47.1