~ubuntu-branches/ubuntu/precise/insighttoolkit/precise

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkNaryFunctorImageFilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-12-19 20:16:49 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081219201649-drt97guwl2ryt0cn

* New upstream version.
  - patches/nifti-versioning.patch: Remove.  Applied upstream.
  - control:
  - rules: Update version numbers, package names.

* control: Build-depend on uuid-dev (gdcm uses it).

* copyright: Update download URL.

* rules: Adhere to parallel=N in DEB_BUILD_OPTIONS by setting MAKEFLAGS.

* compat: Set to 7.
* control: Update build-dep on debhelper to version >= 7.

* CMakeCache.txt.debian: Set CMAKE_BUILD_TYPE to "RELEASE" so that we
  build with -O3 (not -O2), necessary to optimize the templated code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  Program:   Insight Segmentation & Registration Toolkit
4
4
  Module:    $RCSfile: itkNaryFunctorImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2006-10-25 12:12:57 $
7
 
  Version:   $Revision: 1.16 $
 
6
  Date:      $Date: 2008-10-16 19:33:44 $
 
7
  Version:   $Revision: 1.17 $
8
8
 
9
9
  Copyright (c) Insight Software Consortium. All rights reserved.
10
10
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
44
44
{
45
45
public:
46
46
  /** Standard class typedefs. */
47
 
  typedef NaryFunctorImageFilter  Self;
 
47
  typedef NaryFunctorImageFilter                        Self;
48
48
  typedef InPlaceImageFilter<TInputImage,TOutputImage>  Superclass;
49
 
  typedef SmartPointer<Self>   Pointer;
50
 
  typedef SmartPointer<const Self>  ConstPointer;
 
49
  typedef SmartPointer<Self>                            Pointer;
 
50
  typedef SmartPointer<const Self>                      ConstPointer;
51
51
  /** Method for creation through the object factory. */
52
52
  itkNewMacro(Self);
53
53
  
55
55
  itkTypeMacro(NaryFunctorImageFilter, InPlaceImageFilter);
56
56
 
57
57
  /** Some typedefs. */
58
 
  typedef TFunction   FunctorType;
59
 
  typedef TInputImage InputImageType;
 
58
  typedef TFunction                             FunctorType;
 
59
  typedef TInputImage                           InputImageType;
60
60
  typedef typename InputImageType::Pointer      InputImagePointer;
61
61
  typedef typename InputImageType::RegionType   InputImageRegionType; 
62
62
  typedef typename InputImageType::PixelType    InputImagePixelType; 
63
 
  typedef TOutputImage OutputImageType;
 
63
  typedef TOutputImage                          OutputImageType;
64
64
  typedef typename OutputImageType::Pointer     OutputImagePointer;
65
65
  typedef typename OutputImageType::RegionType  OutputImageRegionType;
66
66
  typedef typename OutputImageType::PixelType   OutputImagePixelType;
79
79
   * (or the compiler's default implementation of operator!=() being
80
80
   * appropriate). */
81
81
  void SetFunctor(FunctorType& functor)
82
 
  {
 
82
    {
83
83
    if ( m_Functor != functor )
84
84
      {
85
85
      m_Functor = functor;
86
86
      this->Modified();
87
87
      }
88
 
  }
 
88
    }
89
89
  
90
90
  /** ImageDimension constants */
91
91
  itkStaticConstMacro(