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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkVectorCurvatureNDAnisotropicDiffusionFunction.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: itkVectorCurvatureNDAnisotropicDiffusionFunction.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2003-09-10 14:28:59 $
7
 
  Version:   $Revision: 1.13 $
 
6
  Date:      $Date: 2008-10-17 16:30:54 $
 
7
  Version:   $Revision: 1.14 $
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 __itkVectorCurvatureNDAnisotropicDiffusionFunction_h_
18
 
#define __itkVectorCurvatureNDAnisotropicDiffusionFunction_h_
 
17
#ifndef __itkVectorCurvatureNDAnisotropicDiffusionFunction_h
 
18
#define __itkVectorCurvatureNDAnisotropicDiffusionFunction_h
19
19
 
20
20
#include "itkVectorAnisotropicDiffusionFunction.h"
21
21
#include "itkNeighborhoodAlgorithm.h"
45
45
public:
46
46
  /** Standard itk Self & Superclass typedefs */
47
47
  typedef VectorCurvatureNDAnisotropicDiffusionFunction Self;
48
 
  typedef VectorAnisotropicDiffusionFunction<TImage> Superclass;
49
 
  typedef SmartPointer<Self> Pointer;
50
 
  typedef SmartPointer<const Self> ConstPointer;
 
48
  typedef VectorAnisotropicDiffusionFunction<TImage>    Superclass;
 
49
  typedef SmartPointer<Self>                            Pointer;
 
50
  typedef SmartPointer<const Self>                      ConstPointer;
51
51
 
52
52
  /** Method for creation through the object factory. */
53
53
  itkNewMacro(Self);
63
63
  typedef typename Superclass::RadiusType       RadiusType;
64
64
  typedef typename Superclass::NeighborhoodType NeighborhoodType;
65
65
  typedef typename Superclass::FloatOffsetType  FloatOffsetType;
66
 
  typedef typename PixelType::ValueType ScalarValueType;
 
66
  typedef typename PixelType::ValueType         ScalarValueType;
67
67
  
68
68
  /** Extract the image and vector dimension. */
69
69
  itkStaticConstMacro(ImageDimension, unsigned int,
79
79
 
80
80
  /** This method is called prior to each iteration of the solver. */
81
81
  virtual void InitializeIteration()
82
 
  {
 
82
    {
83
83
    m_K = this->GetAverageGradientMagnitudeSquared() * this->GetConductanceParameter() *
84
84
      this->GetConductanceParameter() * -2.0f;
85
 
  }
 
85
    }
86
86
  
87
87
protected:
88
88
  VectorCurvatureNDAnisotropicDiffusionFunction();