KWStyle - itkBackwardDifferenceOperator.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkBackwardDifferenceOperator.txx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:33 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 DEF #ifndef _itkBackwardDifferenceOperator_txx
18 DEF #define _itkBackwardDifferenceOperator_txx
19 #include "itkBackwardDifferenceOperator.h"
20 namespace itk
21 {
22
23 template <class TPixel, unsigned int VDimension, class TAllocator>
24 typename BackwardDifferenceOperator<TPixel, VDimension, TAllocator>
25 ::CoefficientVector
26 BackwardDifferenceOperator<TPixel, VDimension, TAllocator>
27 ::GenerateCoefficients()
28 {
29   CoefficientVector coeff(3);
30   coeff[0] = -1.0f *  NumericTraits<PixelType>::One;
31   coeff[1] =  NumericTraits<PixelType>::One;
32   coeff[2] =  NumericTraits<PixelType>::Zero;
33
34   return coeff;
35 }
36   
37 // namespace itk
38
39 #endif
40

Generated by KWStyle 1.0b on Tuesday January,17 at 02:13:59PM
© Kitware Inc.