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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkMaskNegatedImageFilter.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: itkMaskNegatedImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007-09-27 11:36:40 $
7
 
  Version:   $Revision: 1.7 $
 
6
  Date:      $Date: 2008-10-16 18:05:25 $
 
7
  Version:   $Revision: 1.8 $
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.
61
61
  MaskNegatedInput() {};
62
62
  ~MaskNegatedInput() {};
63
63
  bool operator!=( const MaskNegatedInput & ) const
64
 
  {
 
64
    {
65
65
    return false;
66
 
  }
 
66
    }
67
67
  bool operator==( const MaskNegatedInput & other ) const
68
 
  {
 
68
    {
69
69
    return !(*this != other);
70
 
  }
 
70
    }
71
71
  inline TOutput operator()( const TInput & A, const TMask & B)
72
 
  {
 
72
    {
73
73
    if (B != NumericTraits< TMask >::Zero ) 
74
74
      {
75
75
      return NumericTraits< TOutput >::Zero;
78
78
      {
79
79
      return static_cast<TOutput>( A );
80
80
      }
81
 
  }
 
81
    }
82
82
}; 
83
83
 
84
84
}
95
95
{
96
96
public:
97
97
  /** Standard class typedefs. */
98
 
  typedef MaskNegatedImageFilter  Self;
 
98
  typedef MaskNegatedImageFilter    Self;
99
99
  typedef BinaryFunctorImageFilter<TInputImage,TMaskImage,TOutputImage, 
100
100
                                   Functor::MaskNegatedInput< 
101
101
    typename TInputImage::PixelType, 
102
102
    typename TMaskImage::PixelType,
103
103
    typename TOutputImage::PixelType>   
104
 
  >  Superclass;
105
 
  typedef SmartPointer<Self>   Pointer;
 
104
  >                                 Superclass;
 
105
  typedef SmartPointer<Self>        Pointer;
106
106
  typedef SmartPointer<const Self>  ConstPointer;
107
107
 
108
108
  /** Method for creation through the object factory. */