ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkContinuousBorderWarpImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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 itkContinuousBorderWarpImageFilter_h
19 #define itkContinuousBorderWarpImageFilter_h
20 
21 #include "itkWarpImageFilter.h"
22 
23 namespace itk
24 {
25 
58 template <
59  typename TInputImage,
60  typename TOutputImage,
61  typename TDisplacementField
62  >
64  public WarpImageFilter<TInputImage, TOutputImage, TDisplacementField>
65 {
66 public:
67  ITK_DISALLOW_COPY_AND_ASSIGN(ContinuousBorderWarpImageFilter);
68 
74 
76  itkNewMacro(Self);
77 
80 
83 
92  using PixelType = typename OutputImageType::PixelType;
93  using SpacingType = typename OutputImageType::SpacingType;
94 
96  static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
97  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
98  static constexpr unsigned int DeformationFieldDimension = TDisplacementField::ImageDimension;
99 
101  using DisplacementFieldType = TDisplacementField;
102  using DisplacementFieldPointer = typename DisplacementFieldType::Pointer;
103  using DisplacementType = typename DisplacementFieldType::PixelType;
104 
107 
110 
111 protected:
113  ~ContinuousBorderWarpImageFilter() override = default;
114 
116  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) override;
117 };
118 
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkContinuousBorderWarpImageFilter.hxx"
123 #endif
124 
125 #endif
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::SizeType SizeType
TDisplacementField DisplacementFieldType
Point< CoordRepType, Self::ImageDimension > PointType
typename DisplacementFieldType::Pointer DisplacementFieldPointer
typename Superclass::InputImageType InputImageType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename OutputImageType::IndexType IndexType
typename TOutputImage::RegionType OutputImageRegionType
Base class for all process objects that output image data.
InterpolateImageFunction< InputImageType, CoordRepType > InterpolatorType
typename Superclass::OutputImageType OutputImageType
typename OutputImageType::SpacingType SpacingType
typename InputImageType::Pointer InputImagePointer
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
typename OutputImageType::PixelType PixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename Superclass::OutputImagePointer OutputImagePointer
Warps an image using an input displacement field.
typename DisplacementFieldType::PixelType DisplacementType
typename Superclass::InputImagePointer InputImagePointer
Base class for all image interpolaters.
typename Superclass::InputImageConstPointer InputImageConstPointer
Warps an image using an input deformation field with continuous boundary conditions.
typename InputImageType::ConstPointer InputImageConstPointer
~ContinuousBorderWarpImageFilter() override=default