]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/RegionGrow.h
...
[FrontAlgorithms.git] / lib / fpa / Base / RegionGrow.h
index 6a3c9e6faebff789ed87514e7255bb5292eeaa74..4790b851a9273768e1d0ae5f4cf1e79e03d025aa 100644 (file)
@@ -48,11 +48,22 @@ namespace fpa
       virtual bool _UpdateValue(
         _TQueueNode& v, const _TQueueNode& p
         ) override;
+      virtual TOutput _GetInputValue( const _TQueueNode& v, const _TQueueNode& p ) override
+        {
+          TOutput res = this->m_InitResult;
+          if( this->m_GrowFunction.IsNotNull( ) )
+            res = this->m_GrowFunction->Evaluate( v.Vertex, p.Vertex );
+          return( res );
+        }
+
 
     private:
       // Purposely not defined
       RegionGrow( const Self& other );
       Self& operator=( const Self& other );
+
+    protected:
+      typename TGrowFunction::Pointer m_GrowFunction;
     };
 
   } // ecapseman