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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkShiftScaleInPlaceImageFilter.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: itkShiftScaleInPlaceImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2006-03-31 14:31:04 $
7
 
  Version:   $Revision: 1.4 $
 
6
  Date:      $Date: 2008-10-17 20:49:55 $
 
7
  Version:   $Revision: 1.5 $
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 __itkShiftScaleImageInPlaceFilter_h
18
 
#define __itkShiftScaleImageInPlaceFilter_h
 
17
#ifndef __itkShiftScaleInPlaceImageFilter_h
 
18
#define __itkShiftScaleInPlaceImageFilter_h
19
19
 
20
20
#include "itkInPlaceImageFilter.h"
21
21
#include "itkArray.h"
47
47
{
48
48
public:
49
49
  /** Standard class typedefs. */
50
 
  typedef ShiftScaleInPlaceImageFilter         Self;
 
50
  typedef ShiftScaleInPlaceImageFilter     Self;
51
51
  typedef InPlaceImageFilter<TInputImage>  Superclass;
52
 
  typedef SmartPointer<Self>  Pointer;
53
 
  typedef SmartPointer<const Self>  ConstPointer;
 
52
  typedef SmartPointer<Self>               Pointer;
 
53
  typedef SmartPointer<const Self>         ConstPointer;
54
54
 
55
55
  /** Method for creation through the object factory. */
56
56
  itkNewMacro(Self);  
68
68
  typedef typename TInputImage::PixelType OutputImagePixelType;
69
69
 
70
70
  /** Typedef to describe the output and input image index and size types. */
71
 
  typedef typename TInputImage::IndexType InputImageIndexType;
72
 
  typedef typename TInputImage::SizeType InputImageSizeType;
 
71
  typedef typename TInputImage::IndexType  InputImageIndexType;
 
72
  typedef typename TInputImage::SizeType   InputImageSizeType;
73
73
  typedef typename TInputImage::OffsetType InputImageOffsetType;
74
 
  typedef typename TInputImage::IndexType OutputImageIndexType;
75
 
  typedef typename TInputImage::SizeType OutputImageSizeType;
 
74
  typedef typename TInputImage::IndexType  OutputImageIndexType;
 
75
  typedef typename TInputImage::SizeType   OutputImageSizeType;
76
76
  typedef typename TInputImage::OffsetType OutputImageOffsetType;
77
77
 
78
78
  /** Type to use form computations. */
80
80
      
81
81
  /** Image related typedefs. */
82
82
  itkStaticConstMacro(ImageDimension, unsigned int,
83
 
                      TInputImage::ImageDimension ) ;
 
83
                      TInputImage::ImageDimension );
84
84
 
85
85
  /** Run-time type information (and related methods). */
86
86
  itkTypeMacro(ShiftScaleInPlaceImageFilter, InPlaceImageFilter);
122
122
  /** Multi-thread version GenerateData. */
123
123
  void  ThreadedGenerateData (const OutputImageRegionType& 
124
124
                              outputRegionForThread,
125
 
                              int threadId) ;
 
125
                              int threadId);
126
126
 
127
127
private:
128
128
  ShiftScaleInPlaceImageFilter(const Self&); //purposely not implemented
133
133
 
134
134
  long m_UnderflowCount;
135
135
  long m_OverflowCount;
 
136
 
136
137
  Array<long> m_ThreadUnderflow;
137
138
  Array<long> m_ThreadOverflow;
138
139
};