]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpaPlugins/ThresholdImageGrowFunctionSource.cxx
...
[FrontAlgorithms.git] / lib / fpaPlugins / ThresholdImageGrowFunctionSource.cxx
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 );
 }