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"
23
24namespace itk
25{
46template <typename TOutputImage>
47class ITK_TEMPLATE_EXPORT LandmarkDisplacementFieldSource : public ImageSource<TOutputImage>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(LandmarkDisplacementFieldSource);
51
57
58 using OutputImageType = TOutputImage;
59 using OutputImagePointer = typename OutputImageType::Pointer;
60 using OutputImageRegionType = typename OutputImageType::RegionType;
61
63 itkNewMacro(Self);
64
66 itkOverrideGetNameOfClassMacro(LandmarkDisplacementFieldSource);
67
69 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
70
77 using LandmarkPointType = typename LandmarkPointSetType::PointType;
80 using LandmarkContainerPointer = typename LandmarkContainer::ConstPointer;
81
83 using OutputSizeType = typename OutputImageType::SizeType;
84
86 using OutputIndexType = typename OutputImageType::IndexType;
87
89 using OutputPixelType = typename TOutputImage::PixelType;
90 using OutputPixelComponentType = typename OutputPixelType::ValueType;
91
93 using SpacingType = typename TOutputImage::SpacingType;
94 using OriginPointType = typename TOutputImage::PointType;
95 using DirectionType = typename TOutputImage::DirectionType;
96
102 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
106 itkSetMacro(OutputRegion, OutputImageRegionType);
107 itkGetConstReferenceMacro(OutputRegion, OutputImageRegionType);
111 itkSetMacro(OutputSpacing, SpacingType);
112 virtual void
113 SetOutputSpacing(const double * spacing);
116 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
117
120 itkSetMacro(OutputOrigin, OriginPointType);
121 virtual void
122 SetOutputOrigin(const double * origin);
126 itkSetMacro(OutputDirection, DirectionType);
127 itkGetConstReferenceMacro(OutputDirection, DirectionType);
130 itkGetConstReferenceMacro(OutputOrigin, OriginPointType);
131
133 itkSetConstObjectMacro(SourceLandmarks, LandmarkContainer);
134
136 itkSetConstObjectMacro(TargetLandmarks, LandmarkContainer);
137
143 void
145
147 [[nodiscard]] ModifiedTimeType
148 GetMTime() const override;
149
150protected:
153 void
154 PrintSelf(std::ostream & os, Indent indent) const override;
155
158 void
159 GenerateData() override;
160
163 void
165
166private:
169
172
176
179};
180
181} // end namespace itk
182
183#ifndef ITK_MANUAL_INSTANTIATION
184# include "itkLandmarkDisplacementFieldSource.hxx"
185#endif
186
187#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