ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkIsotropicResamplerImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkIsotropicResamplerImageFilter.h
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkIsotropicResamplerImageFilter_h
18 #define __itkIsotropicResamplerImageFilter_h
19 
20 #include "itkResampleImageFilter.h"
21 #include "itkImage.h"
23 
24 namespace itk
25 {
26 
37 template<class TInputImage, class TOutputImage>
39  : public ImageToImageFilter<TInputImage, TOutputImage>
40 {
41 public:
45 
47  typedef TInputImage InputImageType;
48  typedef TOutputImage OutputImageType;
49  typedef typename OutputImageType::Pointer OutputImagePointer;
50 
54 
56  typedef typename TOutputImage::PixelType OutputImagePixelType;
57  typedef typename InputImageType::SizeType SizeType;
59  typedef typename InputImageType::SpacingType SpacingType;
60 
62  itkNewMacro(Self);
63 
66 
68  itkStaticConstMacro(ImageDimension, unsigned int,
69  TInputImage::ImageDimension);
70 
71  itkStaticConstMacro(OutputImageDimension, unsigned int,
72  TOutputImage::ImageDimension);
73 
74  itkSetMacro( OutputSpacing, SpacingType );
75  itkGetMacro( OutputSpacing, SpacingType );
76 
77  itkSetMacro( DefaultPixelValue, OutputImagePixelType );
78  itkGetMacro( DefaultPixelValue, OutputImagePixelType );
79 
80 #ifdef ITK_USE_CONCEPT_CHECKING
81 
84 #endif
85 
88  virtual void SetAbortGenerateData( const bool );
89 
95  virtual void GenerateOutputInformation( void );
96 
97 protected:
99  void PrintSelf(std::ostream& os, Indent indent) const;
100 
101  void GenerateData();
102 
103 private:
105  IsotropicResamplerImageFilter(const Self&); //purposely not implemented
106  void operator=(const Self&); //purposely not implemented
107 
111 
114 };
115 
116 } //end of namespace itk
117 
118 #ifndef ITK_MANUAL_INSTANTIATION
119 #include "itkIsotropicResamplerImageFilter.hxx"
120 #endif
121 
122 #endif
virtual void GenerateOutputInformation(void)
Resample an image via a coordinate transform.
ResampleImageFilter< TInputImage, TOutputImage > ResampleFilterType
Base class for all process objects that output image data.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
void PrintSelf(std::ostream &os, Indent indent) const
OutputImageType::PixelType OutputImagePixelType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
virtual void SetAbortGenerateData(const bool)
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Resamples the image to an isotropic resolution.