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

« back to all changes in this revision

Viewing changes to Code/Algorithms/itkBinaryMinMaxCurvatureFlowFunction.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: itkBinaryMinMaxCurvatureFlowFunction.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2003-09-10 14:28:28 $
7
 
  Version:   $Revision: 1.9 $
 
6
  Date:      $Date: 2008-10-20 21:28:19 $
 
7
  Version:   $Revision: 1.10 $
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 __itkBinaryMinMaxCurvatureFlowFunction_h_
18
 
#define __itkBinaryMinMaxCurvatureFlowFunction_h_
 
17
#ifndef __itkBinaryMinMaxCurvatureFlowFunction_h
 
18
#define __itkBinaryMinMaxCurvatureFlowFunction_h
19
19
 
20
20
#include "itkMinMaxCurvatureFlowFunction.h"
21
21
#include "itkMacro.h"
36
36
 * \sa BinaryMinMaxCurvatureFlowImageFilter
37
37
 * \sa ZeroFluxNeumannBoundaryCondition 
38
38
 * \ingroup FiniteDifferenceFunctions
39
 
*/
 
39
 */
40
40
template <class TImage>
41
41
class ITK_EXPORT BinaryMinMaxCurvatureFlowFunction :
42
42
    public MinMaxCurvatureFlowFunction<TImage>
43
43
{
44
44
public:
45
45
  /**  Standard class typedefs. */
46
 
  typedef BinaryMinMaxCurvatureFlowFunction Self;
 
46
  typedef BinaryMinMaxCurvatureFlowFunction   Self;
47
47
  typedef MinMaxCurvatureFlowFunction<TImage> Superclass;
48
 
  typedef SmartPointer<Self> Pointer;
49
 
  typedef SmartPointer<const Self> ConstPointer;
 
48
  typedef SmartPointer<Self>                  Pointer;
 
49
  typedef SmartPointer<const Self>            ConstPointer;
50
50
 
51
51
  /** Method for creation through the object factory. */
52
52
  itkNewMacro(Self);
56
56
                MinMaxCurvatureFlowFunction );
57
57
  
58
58
  /** Inherit some parameters from the superclass type. */
59
 
  typedef typename Superclass::PixelType PixelType;
60
 
  typedef typename Superclass::RadiusType RadiusType;
 
59
  typedef typename Superclass::PixelType        PixelType;
 
60
  typedef typename Superclass::RadiusType       RadiusType;
61
61
  typedef typename Superclass::NeighborhoodType NeighborhoodType;
62
 
  typedef typename Superclass::FloatOffsetType FloatOffsetType;
63
 
  typedef typename Superclass::ImageType  ImageType;
 
62
  typedef typename Superclass::FloatOffsetType  FloatOffsetType;
 
63
  typedef typename Superclass::ImageType        ImageType;
64
64
 
65
65
  /** Extract superclass dimension. */
66
66
  itkStaticConstMacro(ImageDimension, unsigned int, Superclass::ImageDimension);  
67
67
 
68
68
  /** Set/Get the threshold value. */
69
69
  void SetThreshold( const double thresh )
70
 
  { m_Threshold = thresh; }
 
70
    { m_Threshold = thresh; }
71
71
  const double & GetThreshold() const
72
 
  { return m_Threshold; }
 
72
    { return m_Threshold; }
73
73
 
74
74
  /** This method computes the solution update for each pixel that does not
75
75
   * lie on a the data set boundary. */
87
87
  void operator=(const Self&); //purposely not implemented
88
88
 
89
89
  double           m_Threshold;
90
 
 
91
90
};
92
91
 
93
92
}// end namespace itk