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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/itkResampleImageFilter.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: itkResampleImageFilter.h,v $
5
5
  Language:  C++
6
 
  Date:      $Date: 2008-01-04 16:51:26 $
7
 
  Version:   $Revision: 1.55 $
 
6
  Date:      $Date: 2008-10-24 16:30:43 $
 
7
  Version:   $Revision: 1.58 $
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.
106
106
                      TInputImage::ImageDimension);
107
107
 
108
108
 
109
 
  /** Transform typedef.
110
 
   *
111
 
   **/
 
109
  /** Transform typedef. */
112
110
  typedef Transform<TInterpolatorPrecisionType, 
113
111
    itkGetStaticConstMacro(ImageDimension), 
114
112
    itkGetStaticConstMacro(ImageDimension)> TransformType;
174
172
  itkSetMacro( DefaultPixelValue, PixelType );
175
173
 
176
174
  /** Get the pixel value when a transformed pixel is outside of the image */
177
 
  itkGetMacro( DefaultPixelValue, PixelType );
 
175
  itkGetConstReferenceMacro( DefaultPixelValue, PixelType );
178
176
 
179
177
  /** Set the output image spacing. */
180
178
  itkSetMacro( OutputSpacing, SpacingType );
203
201
    this->SetSize ( Image->GetLargestPossibleRegion().GetSize() );
204
202
    }
205
203
 
 
204
  /** Helper method to set the output parameters based on this image */
 
205
  void SetOutputParametersFromConstImage ( typename OutputImageType::ConstPointer Image )
 
206
    {
 
207
    this->SetOutputOrigin ( Image->GetOrigin() );
 
208
    this->SetOutputSpacing ( Image->GetSpacing() );
 
209
    this->SetOutputDirection ( Image->GetDirection() );
 
210
    this->SetSize ( Image->GetLargestPossibleRegion().GetSize() );
 
211
    }
 
212
 
206
213
  /** Set the start index of the output largest possible region. 
207
214
   * The default is an index of all zeros. */
208
215
  itkSetMacro( OutputStartIndex, IndexType );
314
321
#endif
315
322
  
316
323
#endif
317