ITK  5.2.0
Insight Toolkit
itkExpandImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkExpandImageFilter_h
19 #define itkExpandImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
63 template <typename TInputImage, typename TOutputImage>
64 class ITK_TEMPLATE_EXPORT ExpandImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_MOVE(ExpandImageFilter);
68 
74 
76  itkNewMacro(Self);
77 
80 
83 
85  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
86 
88  using InputImageType = typename Superclass::InputImageType;
89  using OutputImageType = typename Superclass::OutputImageType;
90  using OutputPixelType = typename OutputImageType::PixelType;
91  using InputImagePointer = typename InputImageType::Pointer;
92  using OutputImagePointer = typename OutputImageType::Pointer;
93 
95  using CoordRepType = double;
99 
101  itkSetObjectMacro(Interpolator, InterpolatorType);
102  itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
104 
107 
110  itkSetMacro(ExpandFactors, ExpandFactorsType);
111  virtual void
112  SetExpandFactors(const unsigned int factor);
114 
116  itkGetConstReferenceMacro(ExpandFactors, ExpandFactorsType);
117 
118 
125  void
126  GenerateOutputInformation() override;
127 
133  void
134  GenerateInputRequestedRegion() override;
135 
136 protected:
138  ~ExpandImageFilter() override = default;
139  void
140  PrintSelf(std::ostream & os, Indent indent) const override;
141 
152  void
153  DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
154 
155 
158  void
159  BeforeThreadedGenerateData() override;
160 
161 private:
164 };
165 } // end namespace itk
166 
167 #ifndef ITK_MANUAL_INSTANTIATION
168 # include "itkExpandImageFilter.hxx"
169 #endif
170 
171 #endif
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itkLinearInterpolateImageFunction.h
itk::ExpandImageFilter::CoordRepType
double CoordRepType
Definition: itkExpandImageFilter.h:95
itk::ExpandImageFilter::m_Interpolator
InterpolatorPointer m_Interpolator
Definition: itkExpandImageFilter.h:163
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::ExpandImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkExpandImageFilter.h:90
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::LinearInterpolateImageFunction
Linearly interpolate an image at specified positions.
Definition: itkLinearInterpolateImageFunction.h:50
itk::ExpandImageFilter::m_ExpandFactors
ExpandFactorsType m_ExpandFactors
Definition: itkExpandImageFilter.h:162
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itkImageToImageFilter.h
itk::FixedArray< unsigned int, ImageDimension >
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::ExpandImageFilter
Expand the size of an image by an integer factor in each dimension.
Definition: itkExpandImageFilter.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::ExpandImageFilter::InterpolatorPointer
typename InterpolatorType::Pointer InterpolatorPointer
Definition: itkExpandImageFilter.h:97
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:138
itk::InterpolateImageFunction
Base class for all image interpolators.
Definition: itkInterpolateImageFunction.h:45
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90