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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkSignedDanielssonDistanceMapImageFilter.txx

  • 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: itkSignedDanielssonDistanceMapImageFilter.txx,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2005-09-13 19:19:03 $
7
 
  Version:   $Revision: 1.8 $
 
6
  Date:      $Date: 2008-10-17 20:49:56 $
 
7
  Version:   $Revision: 1.9 $
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.
14
14
     PURPOSE.  See the above copyright notices for more information.
15
15
 
16
16
=========================================================================*/
17
 
#ifndef _itkSignedDanielssonDistanceMapImageFilter_txx
18
 
#define _itkSignedDanielssonDistanceMapImageFilter_txx
 
17
#ifndef __itkSignedDanielssonDistanceMapImageFilter_txx
 
18
#define __itkSignedDanielssonDistanceMapImageFilter_txx
19
19
 
20
20
#include "itkSignedDanielssonDistanceMapImageFilter.h"
21
21
#include "itkProgressAccumulator.h"
51
51
  this->m_InsideIsPositive    = false;
52
52
}
53
53
 
54
 
 
55
 
 
56
54
/**
57
55
 *  Return the distance map Image pointer
58
56
 */
120
118
  filter2->SetSquaredDistance( m_SquaredDistance );
121
119
    
122
120
  //Invert input image for second Danielsson filter
123
 
  typedef typename InputImageType::PixelType InputPixelType;
 
121
  typedef typename InputImageType::PixelType                 InputPixelType;
124
122
  typedef Functor::InvertIntensityFunctor< InputPixelType >  FunctorType;
125
 
  
126
123
  typedef UnaryFunctorImageFilter< InputImageType, 
127
124
                                   InputImageType,
128
 
                                   FunctorType >    InverterType;
 
125
                                   FunctorType >             InverterType;
129
126
 
130
127
  typename InverterType::Pointer inverter = InverterType::New();
131
128
 
187
184
188
185
// end GenerateData()
189
186
 
190
 
 
191
 
 
192
187
/**
193
188
 *  Print Self
194
189
 */
207
202
} // end namespace itk
208
203
 
209
204
#endif
210