ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkIsotropicResampler.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: itkIsotropicResampler.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 itkIsotropicResampler_h
18 #define itkIsotropicResampler_h
19 
20 #include "itkImage.h"
21 #include "itkImageSpatialObject.h"
22 
23 namespace itk
24 {
25 
37 template <unsigned int NDimension>
38 class ITK_TEMPLATE_EXPORT IsotropicResampler : public ProcessObject
39 {
40 public:
41  ITK_DISALLOW_COPY_AND_ASSIGN(IsotropicResampler);
42 
48 
50  itkNewMacro(Self);
51 
53  itkTypeMacro(IsotropicResampler, ProcessObject);
54 
56  static constexpr unsigned int Dimension = NDimension;
57 
60  using InputPixelType = signed short;
66 
69  void SetInput( const SpatialObjectType * input );
70  const SpatialObjectType * GetInput() const;
72 
75  const SpatialObjectType * GetOutput() const;
76 
77  itkSetMacro( OutputSpacing, double );
78  itkGetMacro( OutputSpacing, double );
79 
80 protected:
82  ~IsotropicResampler() override;
83  void PrintSelf(std::ostream& os, Indent indent) const override;
84 
87  void GenerateData () override;
88 
89 private:
90  using OutputPixelType = signed short;
92 
94 
96 };
97 
98 } // end namespace itk
99 
100 #ifndef ITK_MANUAL_INSTANTIATION
101 # include "itkIsotropicResampler.hxx"
102 #endif
103 
104 #endif
typename SpatialObjectType::Pointer SpatialObjectPointer
Light weight base class for most itk classes.
typename InputImageSpatialObjectType::Pointer InputImageSpatialObjectPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Resamples the image to an isotropic resolution.
class ITK_FORWARD_EXPORT ProcessObject
Definition: itkDataObject.h:40
Implementation of the composite pattern.
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implementation of an image as spatial object.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Templated n-dimensional image class.
Definition: itkImage.h:75