From: Leonardo Florez-Valencia Date: Thu, 18 Feb 2016 00:30:42 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c1565f15fd38a5dec91ae9f0b83178c7ccb82548;p=FrontAlgorithms.git ... --- 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 ); }