ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkBackwardDifferenceOperator.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 __itkBackwardDifferenceOperator_h
00019 #define __itkBackwardDifferenceOperator_h
00020 
00021 #include "itkNeighborhoodOperator.h"
00022 
00023 namespace itk
00024 {
00044 template< class TPixel, unsigned int TDimension = 2,
00045           class TAllocator = NeighborhoodAllocator< TPixel > >
00046 class ITK_EXPORT BackwardDifferenceOperator:
00047   public NeighborhoodOperator< TPixel, TDimension, TAllocator >
00048 {
00049 public:
00050 
00052   typedef BackwardDifferenceOperator                             Self;
00053   typedef NeighborhoodOperator< TPixel, TDimension, TAllocator > Superclass;
00054 
00056   typedef typename Superclass::PixelType PixelType;
00057 
00059   BackwardDifferenceOperator() {}
00060 protected:
00061 
00063   typedef typename Superclass::CoefficientVector CoefficientVector;
00064 
00066   CoefficientVector GenerateCoefficients();
00067 
00069   void Fill(const CoefficientVector & coeff)
00070   { this->FillCenteredDirectional(coeff); }
00071 private:
00072   BackwardDifferenceOperator(const Self & other); //purposely not implemented
00073   Self & operator=(const Self & other);           //purposely not implemented
00074 };
00075 } // namespace itk
00077 
00078 #ifndef ITK_MANUAL_INSTANTIATION
00079 #include "itkBackwardDifferenceOperator.hxx"
00080 #endif
00081 
00082 #endif
00083