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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkMultiplyImageFilter.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: itkMultiplyImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007-09-27 11:36:41 $
7
 
  Version:   $Revision: 1.25 $
 
6
  Date:      $Date: 2008-10-16 19:33:41 $
 
7
  Version:   $Revision: 1.26 $
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.
40
40
  Mult() {}
41
41
  ~Mult() {}
42
42
  bool operator!=( const Mult & ) const
43
 
  {
 
43
    {
44
44
    return false;
45
 
  }
 
45
    }
46
46
  bool operator==( const Mult & other ) const
47
 
  {
 
47
    {
48
48
    return !(*this != other);
49
 
  }
 
49
    }
50
50
  inline TOutput operator()( const TInput1 & A, const TInput2 & B)
51
 
  { return (TOutput)(A * B); }
 
51
    { return (TOutput)(A * B); }
52
52
}; 
53
53
}
54
54
 
63
63
{
64
64
public:
65
65
  /** Standard class typedefs. */
66
 
  typedef MultiplyImageFilter  Self;
 
66
  typedef MultiplyImageFilter       Self;
67
67
  typedef BinaryFunctorImageFilter<TInputImage1,TInputImage2,TOutputImage, 
68
68
                                   Function::Mult< 
69
69
    typename TInputImage1::PixelType, 
70
70
    typename TInputImage2::PixelType,
71
71
    typename TOutputImage::PixelType>   
72
 
  > Superclass;
73
 
  typedef SmartPointer<Self>   Pointer;
 
72
  >                                 Superclass;
 
73
  typedef SmartPointer<Self>        Pointer;
74
74
  typedef SmartPointer<const Self>  ConstPointer;
75
75
 
76
76
  /** Method for creation through the object factory. */