/*============================================================================= NOTE: THIS FILE IS A HANDMADE WRAPPER FOR THE ManagedITK PROJECT. Project: ManagedITK Program: Insight Segmentation & Registration Toolkit Module: itkManagedSingleValuedCostFunction.cxx Language: C++/CLI Author: Dan Mueller $Date: 2007-04-11 16:26:16 +1000 (Wed, 11 Apr 2007) $ $Revision: 128 $ Copyright (c) Queensland University of Technology (QUT) 2007. All rights reserved. Portions of this code are covered under the ITK and VTK copyright. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =============================================================================*/ #pragma once #pragma warning( disable : 4635 ) // Disable warnings about XML doc comments #ifndef __itkManagedSingleValuedCostFunction_cxx #define __itkManagedSingleValuedCostFunction_cxx // Use some managed namespaces #using #using using namespace System; using namespace System::IO; using namespace System::Reflection; using namespace System::Diagnostics; using namespace System::Collections::Generic; // Include some useful ManagedITK files #include "itkManagedArray.cxx" #include "itkManagedCostFunction.cxx" namespace itk { /// ///This class is a managed replacement for itk::SingleValuedCostFunction. /// /// ///ImageFunction is a baseclass for all cost functions returning a ///single value. /// public ref class itkSingleValuedCostFunction abstract : itkCostFunction { public: ///Return the value of the cost function corresponding to the specified parameters. virtual double GetValue( itkArray^ parameters ) = 0; ///Return the derivative of the cost function corresponding to the specified parameters. virtual itkArray^ GetDerivative( itkArray^ parameters ) = 0; ///Return the derivative of the cost function corresponding to the specified parameters. //virtual void GetValueAndDerivative( itkArray^ parameters, double value, itkArray^ derivative ) = 0; }; // end ref class } // end namespace itk #endif