]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/Functors/InvertCostFunction.h
Major refactoring
[FrontAlgorithms.git] / lib / fpa / Base / Functors / InvertCostFunction.h
index 278ae557ed7dd9374d09bfae1dc5f9e7ecb7d15d..faf4fb2dbea2027c58874f75d77f9ff2df8fbb73 100644 (file)
@@ -29,7 +29,7 @@ namespace fpa
       public:
         virtual C Evaluate( const C& input ) const
           {
-            return( C( 1 ) / ( C( 0 ) + C( input ) ) );
+            return( C( 1 ) / ( C( 1 ) + C( input ) ) );
           }
 
       protected: