]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 18 Feb 2016 00:30:42 +0000 (19:30 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 18 Feb 2016 00:30:42 +0000 (19:30 -0500)
lib/fpaPlugins/ImageRegionGrow.cxx
lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx

index 07697ce48fb15481a06e66a0fa5c6cde4464369c..cc04861483b7845a3242f075030b3d74dee037a5 100644 (file)
@@ -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 );
index 4863f4d91e9ac18cc4d43235204d3c34c0ca4ccc..cebd4a261caad4f388e4788b06521f6b326761e4 100644 (file)
@@ -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 );
 }