ITK  4.13.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  class TInputImage,
60  class TOutputImage,
61  class TDisplacementField
62  >
64  public WarpImageFilter<TInputImage, TOutputImage, TDisplacementField>
65 {
66 public:
72 
74  itkNewMacro(Self);
75 
78 
81 
90  typedef typename OutputImageType::PixelType PixelType;
91  typedef typename OutputImageType::SpacingType SpacingType;
92 
94  itkStaticConstMacro(ImageDimension, unsigned int,
95  TOutputImage::ImageDimension );
96  itkStaticConstMacro(InputImageDimension, unsigned int,
97  TInputImage::ImageDimension );
98  itkStaticConstMacro(DeformationFieldDimension, unsigned int,
99  TDisplacementField::ImageDimension );
101 
103  typedef TDisplacementField DisplacementFieldType;
104  typedef typename DisplacementFieldType::Pointer DisplacementFieldPointer;
105  typedef typename DisplacementFieldType::PixelType DisplacementType;
106 
109 
112 
113 protected:
116 
120  virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
121  ThreadIdType threadId ) ITK_OVERRIDE;
122 
123 private:
124  ContinuousBorderWarpImageFilter(const Self&); //purposely not implemented
125  void operator=(const Self&); //purposely not implemented
126 
127 };
128 
129 } // end namespace itk
130 
131 #ifndef ITK_MANUAL_INSTANTIATION
132 #include "itkContinuousBorderWarpImageFilter.hxx"
133 #endif
134 
135 #endif
Superclass::InputImageType InputImageType
InterpolateImageFunction< InputImageType, CoordRepType > InterpolatorType
TOutputImage::RegionType OutputImageRegionType
Base class for all process objects that output image data.
Superclass::InputImagePointer InputImagePointer
WarpImageFilter< TInputImage, TOutputImage, TDisplacementField > Superclass
Warps an image using an input displacement field.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Point< CoordRepType, itkGetStaticConstMacro(ImageDimension) > PointType
Superclass::InputImageConstPointer InputImageConstPointer
virtual void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
Superclass::OutputImagePointer OutputImagePointer
Warps an image using an input deformation field with continuous boundary conditions.
Superclass::OutputImageRegionType OutputImageRegionType
Superclass::OutputImageType OutputImageType
Superclass::InputImageConstPointer InputImageConstPointer