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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkGradientImageFilter.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: itkGradientImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007-10-08 11:18:50 $
7
 
  Version:   $Revision: 1.16 $
 
6
  Date:      $Date: 2008-12-08 01:10:42 $
 
7
  Version:   $Revision: 1.17.2.1 $
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.
60
60
  typedef GradientImageFilter Self;
61
61
 
62
62
  /** Convenient typedefs for simplifying declarations. */
63
 
  typedef TInputImage InputImageType;
64
 
  typedef typename InputImageType::Pointer InputImagePointer;
65
 
  typedef Image<CovariantVector<TOutputValueType, itkGetStaticConstMacro(OutputImageDimension)>,  itkGetStaticConstMacro(OutputImageDimension)> OutputImageType;
 
63
  typedef TInputImage                       InputImageType;
 
64
  typedef typename InputImageType::Pointer  InputImagePointer;
 
65
  typedef Image<CovariantVector<
 
66
    TOutputValueType, itkGetStaticConstMacro(OutputImageDimension)>,
 
67
                itkGetStaticConstMacro(OutputImageDimension)>
 
68
                                            OutputImageType;
66
69
  typedef typename OutputImageType::Pointer OutputImagePointer;
67
70
 
68
71
  /** Standard class typedefs. */
69
72
  typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass;
70
 
  typedef SmartPointer<Self> Pointer;
71
 
  typedef SmartPointer<const Self>  ConstPointer;
 
73
  typedef SmartPointer<Self>                                   Pointer;
 
74
  typedef SmartPointer<const Self>                             ConstPointer;
72
75
 
73
76
  /** Method for creation through the object factory. */
74
77
  itkNewMacro(Self);
77
80
  itkTypeMacro(GradientImageFilter, ImageToImageFilter);
78
81
  
79
82
  /** Image typedef support. */
80
 
  typedef typename InputImageType::PixelType InputPixelType;
81
 
  typedef TOperatorValueType OperatorValueType;
82
 
  typedef TOutputValueType OutputValueType;
83
 
  typedef CovariantVector<OutputValueType, itkGetStaticConstMacro(OutputImageDimension)> OutputPixelType;
 
83
  typedef typename InputImageType::PixelType   InputPixelType;
 
84
  typedef TOperatorValueType                   OperatorValueType;
 
85
  typedef TOutputValueType                     OutputValueType;
 
86
  typedef CovariantVector<
 
87
    OutputValueType, itkGetStaticConstMacro(OutputImageDimension)>
 
88
                                               OutputPixelType;
84
89
  typedef typename OutputImageType::RegionType OutputImageRegionType;
85
90
  
86
91
  /** GradientImageFilter needs a larger input requested region than
94
99
  /** Use the image spacing information in calculations. Use this option if you
95
100
   *  want derivatives in physical space. Default is UseImageSpacingOn. */
96
101
  void SetUseImageSpacingOn()
97
 
  { this->SetUseImageSpacing(true); }
 
102
    { this->SetUseImageSpacing(true); }
98
103
  
99
104
  /** Ignore the image spacing. Use this option if you want derivatives in
100
105
      isotropic pixel space.  Default is UseImageSpacingOn. */
101
106
  void SetUseImageSpacingOff()
102
 
  { this->SetUseImageSpacing(false); }
 
107
    { this->SetUseImageSpacing(false); }
103
108
  
104
109
  /** Set/Get whether or not the filter will use the spacing of the input
105
110
      image in its calculations */
122
127
   * into account the image Direction or not. The flag ON will take into
123
128
   * account the image direction and will result in an extra matrix
124
129
   * multiplication compared to the amount of computation performed when the
125
 
   * flag is OFF.  This flag is OFF by default.*/
 
130
   * flag is OFF.
 
131
   * The default value of this flag is the same as the CMAKE option
 
132
   * ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE (i.e ON by default when ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE is ON,
 
133
   * and  OFF by default when ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE is OFF).*/
126
134
  itkSetMacro( UseImageDirection, bool );
127
135
  itkGetMacro( UseImageDirection, bool );
128
136
  itkBooleanMacro( UseImageDirection );