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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkNoiseImageFilter.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: itkNoiseImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2006-03-30 15:36:24 $
7
 
  Version:   $Revision: 1.3 $
 
6
  Date:      $Date: 2008-10-16 19:33:45 $
 
7
  Version:   $Revision: 1.6 $
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.
17
17
#ifndef __itkNoiseImageFilter_h
18
18
#define __itkNoiseImageFilter_h
19
19
 
 
20
// First make sure that the configuration is available.
 
21
// This line can be removed once the optimized versions
 
22
// gets integrated into the main directories.
 
23
#include "itkConfigure.h"
 
24
 
 
25
#ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
 
26
#include "itkOptNoiseImageFilter.h"
 
27
#else
 
28
 
 
29
 
20
30
#include "itkImageToImageFilter.h"
21
31
#include "itkImage.h"
22
32
#include "itkNumericTraits.h"
26
36
/** \class NoiseImageFilter
27
37
 * \brief Calculate the local noise in an image.
28
38
 *
29
 
 * Computes an image where a given pixel is the standard deviation of
30
 
 * the pixels in a neighborhood about the corresponding input pixel.
31
 
 * This serves as an estimate of the local noise (or texture) in an
32
 
 * image. Currently, this noise estimate assume a piecewise constant
33
 
 * image.  This filter should be extended to fitting a (hyper) plane
34
 
 * to the neighborhood and calculating the standard deviation of the
35
 
 * residuals to this (hyper) plane.
 
39
 * Computes an image where a given output pixel is computed as the standard
 
40
 * deviation of the input pixels in a neighborhood about the corresponding
 
41
 * input pixel.  This serves as an estimate of the local noise (or texture) in
 
42
 * an image. Currently, this noise estimate assume a piecewise constant image.
 
43
 * This filter should be extended to fitting a (hyper) plane to the
 
44
 * neighborhood and calculating the standard deviation of the residuals to this
 
45
 * (hyper) plane.
36
46
 *
37
47
 * \sa Image
38
48
 * \sa Neighborhood
53
63
                      TOutputImage::ImageDimension);
54
64
 
55
65
  /** Convenient typedefs for simplifying declarations. */
56
 
  typedef TInputImage InputImageType;
 
66
  typedef TInputImage  InputImageType;
57
67
  typedef TOutputImage OutputImageType;
58
68
 
59
69
  /** Standard class typedefs. */
60
 
  typedef NoiseImageFilter Self;
 
70
  typedef NoiseImageFilter                                     Self;
61
71
  typedef ImageToImageFilter< InputImageType, OutputImageType> Superclass;
62
 
  typedef SmartPointer<Self> Pointer;
63
 
  typedef SmartPointer<const Self>  ConstPointer;
 
72
  typedef SmartPointer<Self>                                   Pointer;
 
73
  typedef SmartPointer<const Self>                             ConstPointer;
64
74
 
65
75
  /** Method for creation through the object factory. */
66
76
  itkNewMacro(Self);
69
79
  itkTypeMacro(NoiseImageFilter, ImageToImageFilter);
70
80
  
71
81
  /** Image typedef support. */
72
 
  typedef typename InputImageType::PixelType InputPixelType;
73
 
  typedef typename OutputImageType::PixelType OutputPixelType;
 
82
  typedef typename InputImageType::PixelType               InputPixelType;
 
83
  typedef typename OutputImageType::PixelType              OutputPixelType;
74
84
  typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
75
85
  
76
 
  typedef typename InputImageType::RegionType InputImageRegionType;
 
86
  typedef typename InputImageType::RegionType  InputImageRegionType;
77
87
  typedef typename OutputImageType::RegionType OutputImageRegionType;
78
88
 
79
89
  typedef typename InputImageType::SizeType InputSizeType;
133
143
#endif
134
144
 
135
145
#endif
 
146
 
 
147
#endif