X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FBase%2FFunctors%2FInvertCostFunction.h;fp=lib%2Ffpa%2FBase%2FFunctors%2FInvertCostFunction.h;h=0000000000000000000000000000000000000000;hb=9c4035dc18f4e44a92cda3e3c1c6e583c94ef06b;hp=22644adb38d9ef4c70f3c0b4052b3bda719c7ea2;hpb=e832f438861464a8d521464b61be7e31c896adb8;p=FrontAlgorithms.git diff --git a/lib/fpa/Base/Functors/InvertCostFunction.h b/lib/fpa/Base/Functors/InvertCostFunction.h deleted file mode 100644 index 22644ad..0000000 --- a/lib/fpa/Base/Functors/InvertCostFunction.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef __FPA__BASE__FUNCTORS__INVERTCOSTFUNCTION__H__ -#define __FPA__BASE__FUNCTORS__INVERTCOSTFUNCTION__H__ - -#include -#include - -namespace fpa -{ - namespace Base - { - namespace Functors - { - /** - */ - template< class C > - class InvertCostFunction - : public itk::FunctionBase< C, C > - { - public: - /// Type-related and pointers - typedef InvertCostFunction Self; - typedef itk::FunctionBase< C, C > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkNewMacro( Self ); - itkTypeMacro( InvertCostFunction, itkFunctionBase ); - - itkGetConstMacro( Alpha, C ); - itkGetConstMacro( Beta, C ); - - itkSetMacro( Alpha, C ); - itkSetMacro( Beta, C ); - - public: - virtual C Evaluate( const C& input ) const ITK_OVERRIDE - { - C a = std::pow( input, this->m_Alpha ); - if( input >= C( 0 ) ) - return( std::pow( C( 1 ) / ( C( 1 ) + a ), this->m_Beta ) ); - else - return( std::pow( C( -1 ) / ( C( 1 ) - a ), this->m_Beta ) ); - } - - protected: - InvertCostFunction( ) - : Superclass( ), - m_Alpha( C( 1 ) ), - m_Beta( C( 1 ) ) - { } - virtual ~InvertCostFunction( ) - { } - - private: - // Purposely not implemented - InvertCostFunction( const Self& ); - void operator=( const Self& ); - - protected: - C m_Alpha; - C m_Beta; - }; - - } // ecapseman - - } // ecapseman - -} // ecapseman - -#endif // __FPA__BASE__FUNCTORS__INVERTCOSTFUNCTION__H__ - -// eof - $RCSfile$