ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLandmarkDisplacementFieldSource.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 * https://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 itkLandmarkDisplacementFieldSource_h
19#define itkLandmarkDisplacementFieldSource_h
20
21#include "itkImageSource.h"
22#include "itkKernelTransform.h"
24
25namespace itk
26{
48template <typename TOutputImage>
49class ITK_TEMPLATE_EXPORT LandmarkDisplacementFieldSource : public ImageSource<TOutputImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(LandmarkDisplacementFieldSource);
53
59
60 using OutputImageType = TOutputImage;
61 using OutputImagePointer = typename OutputImageType::Pointer;
62 using OutputImageRegionType = typename OutputImageType::RegionType;
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(LandmarkDisplacementFieldSource);
69
71 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
72
79 using LandmarkPointType = typename LandmarkPointSetType::PointType;
82 using LandmarkContainerPointer = typename LandmarkContainer::ConstPointer;
83
85 using OutputSizeType = typename OutputImageType::SizeType;
86
88 using OutputIndexType = typename OutputImageType::IndexType;
89
91 using OutputPixelType = typename TOutputImage::PixelType;
92 using OutputPixelComponentType = typename OutputPixelType::ValueType;
93
95 using SpacingType = typename TOutputImage::SpacingType;
96 using OriginPointType = typename TOutputImage::PointType;
97 using DirectionType = typename TOutputImage::DirectionType;
98
103 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
105
107 itkSetMacro(OutputRegion, OutputImageRegionType);
108 itkGetConstReferenceMacro(OutputRegion, OutputImageRegionType);
110
112 itkSetMacro(OutputSpacing, SpacingType);
113 virtual void
114 SetOutputSpacing(const double * spacing);
116
118 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
119
121 itkSetMacro(OutputOrigin, OriginPointType);
122 virtual void
123 SetOutputOrigin(const double * origin);
125
127 itkSetMacro(OutputDirection, DirectionType);
128 itkGetConstReferenceMacro(OutputDirection, DirectionType);
130
132 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
133
135 itkSetConstObjectMacro(SourceLandmarks, LandmarkContainer);
136
138 itkSetConstObjectMacro(TargetLandmarks, LandmarkContainer);
139
145 void
147
150 GetMTime() const override;
151
152protected:
155 void
156 PrintSelf(std::ostream & os, Indent indent) const override;
157
160 void
161 GenerateData() override;
162
165 void
167
168private:
171
174
178
181};
182
183} // end namespace itk
184
185#ifndef ITK_MANUAL_INSTANTIATION
186# include "itkLandmarkDisplacementFieldSource.hxx"
187#endif
188
189#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
PointSet< InputPointType, VDimension, PointSetTraitsType > PointSetType
typename PointSetType::PointsContainer PointsContainer
typename OutputImageType::RegionType OutputImageRegionType
virtual void SetOutputOrigin(const double *origin)
typename OutputPixelType::ValueType OutputPixelComponentType
virtual void SetOutputSpacing(const double *spacing)
ModifiedTimeType GetMTime() const override
typename KernelTransformType::PointsContainer LandmarkContainer
~LandmarkDisplacementFieldSource() override=default
typename TOutputImage::DirectionType DirectionType
KernelTransform< double, Self::ImageDimension > KernelTransformType
void PrintSelf(std::ostream &os, Indent indent) const override
typename LandmarkContainer::ConstPointer LandmarkContainerPointer
typename OutputImageType::IndexType OutputIndexType
typename KernelTransformType::PointSetType LandmarkPointSetType
typename LandmarkPointSetType::PointType LandmarkPointType
typename KernelTransformType::Pointer KernelTransformPointerType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType