ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkAtanRegularizedHeavisideStepFunction.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkAtanRegularizedHeavisideStepFunction_h
00019 #define __itkAtanRegularizedHeavisideStepFunction_h
00020 
00021 #include "itkRegularizedHeavisideStepFunction.h"
00022 
00023 namespace itk
00024 {
00052 template< typename TInput = float, typename TOutput = double >
00053 class AtanRegularizedHeavisideStepFunction:
00054   public RegularizedHeavisideStepFunction< TInput, TOutput >
00055 {
00056 public:
00057   typedef AtanRegularizedHeavisideStepFunction                Self;
00058   typedef RegularizedHeavisideStepFunction< TInput, TOutput > Superclass;
00059   typedef SmartPointer< Self >                                Pointer;
00060   typedef SmartPointer< const Self >                          ConstPointer;
00061 
00062   itkNewMacro(Self);
00063 
00064   itkTypeMacro(AtanRegularizedHeavisideStepFunction, RegularizedHeavisideStepFunction);
00065 
00066   typedef typename Superclass::InputType  InputType;
00067   typedef typename Superclass::OutputType OutputType;
00068   typedef typename Superclass::RealType   RealType;
00069 
00071   virtual OutputType Evaluate(const InputType & input) const;
00072 
00074   virtual OutputType EvaluateDerivative(const InputType & input) const;
00075 
00076 protected:
00077 
00078   AtanRegularizedHeavisideStepFunction();
00079   virtual ~AtanRegularizedHeavisideStepFunction();
00080 
00081 private:
00083   AtanRegularizedHeavisideStepFunction(const Self &);
00084   void operator=(const Self &);
00085 };
00086 }
00088 
00089 #ifndef ITK_MANUAL_INSTANTIATION
00090 #include "itkAtanRegularizedHeavisideStepFunction.hxx"
00091 #endif
00092 
00093 #endif
00094