ITK  5.0.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<typename TInputImage, typename TOutputImage>
39  : public ImageToImageFilter<TInputImage, TOutputImage>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicResamplerImageFilter);
43 
47 
49  using InputImageType = TInputImage;
50  using OutputImageType = TOutputImage;
51  using OutputImagePointer = typename OutputImageType::Pointer;
52 
56 
58  using OutputImagePixelType = typename TOutputImage::PixelType;
61  using SpacingType = typename InputImageType::SpacingType;
62 
64  itkNewMacro(Self);
65 
68 
70  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
71 
72  static constexpr unsigned int OutputImageDimension = 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  void SetAbortGenerateData( const bool ) override;
89 
95  void GenerateOutputInformation( void ) override;
96 
97 protected:
99  void PrintSelf(std::ostream& os, Indent indent) const override;
100 
101  void GenerateData() override;
102 
103 private:
105 
109 
112 };
113 
114 } //end of namespace itk
115 
116 #ifndef ITK_MANUAL_INSTANTIATION
117 #include "itkIsotropicResamplerImageFilter.hxx"
118 #endif
119 
120 #endif
typename OutputImageType::Pointer OutputImagePointer
void SetAbortGenerateData(const bool) override
typename InputImageType::SizeType SizeType
void GenerateOutputInformation(void) override
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned long SizeValueType
Definition: itkIntTypes.h:83
Resample an image via a coordinate transform.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename InputImageType::SpacingType SpacingType
SmartPointer< Self > Pointer
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename ResampleFilterType::Pointer ResampleFilterPointer
static constexpr unsigned int OutputImageDimension
typename SizeType::SizeValueType SizeValueType
TOutputImage OutputImageType
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.