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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkExtractImageFilter.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: itkExtractImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2007-08-27 13:29:02 $
7
 
  Version:   $Revision: 1.13 $
 
6
  Date:      $Date: 2008-10-14 19:20:34 $
 
7
  Version:   $Revision: 1.15 $
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.
46
46
 * InputImageDimension.  The number of non-zero dimensions in 
47
47
 * ExtractionRegion.Size must = OutputImageDimension.
48
48
 *
 
49
 * The output image produced by this filter will have the same origin than the
 
50
 * input image, while the ImageRegion of the output image will start at the
 
51
 * starting index value provided in the ExtractRegion parameter.  If you are
 
52
 * looking for a filter that will re-compute the origin of the output image,
 
53
 * and provide an output image region whose index is set to zeros, then you may
 
54
 * want to use the RegionOfInterestImageFilter.
 
55
 *
49
56
 * This filter is implemented as a multithreaded filter.  It provides a 
50
57
 * ThreadedGenerateData() method for its implementation.
51
58
 * 
58
65
{
59
66
public:
60
67
  /** Standard class typedefs. */
61
 
  typedef ExtractImageFilter         Self;
 
68
  typedef ExtractImageFilter                            Self;
62
69
  typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
63
 
  typedef SmartPointer<Self>  Pointer;
64
 
  typedef SmartPointer<const Self>  ConstPointer;
 
70
  typedef SmartPointer<Self>                            Pointer;
 
71
  typedef SmartPointer<const Self>                      ConstPointer;
65
72
 
66
73
  /** Method for creation through the object factory. */
67
74
  itkNewMacro(Self);  
75
82
 
76
83
  /** Typedef to describe the output and input image region types. */
77
84
  typedef typename TOutputImage::RegionType OutputImageRegionType;
78
 
  typedef typename TInputImage::RegionType InputImageRegionType;
 
85
  typedef typename TInputImage::RegionType  InputImageRegionType;
79
86
 
80
87
  /** Typedef to describe the type of pixel. */
81
88
  typedef typename TOutputImage::PixelType OutputImagePixelType;
82
 
  typedef typename TInputImage::PixelType InputImagePixelType;
 
89
  typedef typename TInputImage::PixelType  InputImagePixelType;
83
90
 
84
91
  /** Typedef to describe the output and input image index and size types. */
85
92
  typedef typename TOutputImage::IndexType OutputImageIndexType;
86
 
  typedef typename TInputImage::IndexType InputImageIndexType;
87
 
  typedef typename TOutputImage::SizeType OutputImageSizeType;
88
 
  typedef typename TInputImage::SizeType InputImageSizeType;
 
93
  typedef typename TInputImage::IndexType  InputImageIndexType;
 
94
  typedef typename TOutputImage::SizeType  OutputImageSizeType;
 
95
  typedef typename TInputImage::SizeType   InputImageSizeType;
89
96
 
90
97
  /** ImageDimension enumeration */
91
98
  itkStaticConstMacro(InputImageDimension, unsigned int,
151
158
   *     ImageToImageFilter::GenerateData()  */
152
159
  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
153
160
                            int threadId );
154
 
  InputImageRegionType m_ExtractionRegion;
 
161
  InputImageRegionType  m_ExtractionRegion;
155
162
  OutputImageRegionType m_OutputImageRegion;
156
163
 
157
164
private: