ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkSinRegularizedHeavisideStepFunction.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 __itkSinRegularizedHeavisideStepFunction_h
00019 #define __itkSinRegularizedHeavisideStepFunction_h
00020 
00021 #include "itkRegularizedHeavisideStepFunction.h"
00022 
00023 namespace itk
00024 {
00052 template< typename TInput = float, typename TOutput = double >
00053 class SinRegularizedHeavisideStepFunction:
00054   public RegularizedHeavisideStepFunction< TInput, TOutput >
00055 {
00056 public:
00057   typedef SinRegularizedHeavisideStepFunction                 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(SinRegularizedHeavisideStepFunction, RegularizedHeavisideStepFunction);
00065 
00066   typedef typename Superclass::InputType  InputType;
00067   typedef typename Superclass::OutputType OutputType;
00068   typedef typename Superclass::RealType   RealType;
00069 
00071   OutputType Evaluate(const InputType & input) const;
00072 
00074   OutputType EvaluateDerivative(const InputType & input) const;
00075 
00076 protected:
00077   SinRegularizedHeavisideStepFunction();
00078   ~SinRegularizedHeavisideStepFunction();
00079 private:
00080   SinRegularizedHeavisideStepFunction(const Self &); //purposely not implemented
00081   void operator=(const Self &);                      //purposely not implemented
00082 };
00083 }
00084 
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkSinRegularizedHeavisideStepFunction.hxx"
00087 #endif
00088 
00089 #endif
00090