KWStyle - itkForwardDifferenceOperator.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkForwardDifferenceOperator.txx.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:35 $
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 _itkForwardDifferenceOperator_txx
18 DEF #define _itkForwardDifferenceOperator_txx
19 #include "itkForwardDifferenceOperator.h"
20
21 #include "itkNumericTraits.h"
22
23 namespace itk
24 {
25
26 template <class TPixel, unsigned int VDimension, class TAllocator>
27 typename ForwardDifferenceOperator<TPixel, VDimension, TAllocator>
28 ::CoefficientVector
29 ForwardDifferenceOperator<TPixel, VDimension, TAllocator>
30 ::GenerateCoefficients()
31 {
32   CoefficientVector coeff(3);
33
34   coeff[0] = NumericTraits<PixelType>::Zero;
35   coeff[1] = -1.0f *  NumericTraits<PixelType>::One;
36   coeff[2] =  NumericTraits<PixelType>::One;
37
38   return coeff;
39 }
40   
41 // namespace itk
42
43 #endif
44

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