ITK  6.0.0
Insight Toolkit
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;
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(LandmarkDisplacementFieldSource);
69
71 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
72
83
86
89
91 using OutputPixelType = typename TOutputImage::PixelType;
92 using OutputPixelComponentType = typename OutputPixelType::ValueType;
93
95 using SpacingType = typename TOutputImage::SpacingType;
98
103 itkGetModifiableObjectMacro(KernelTransform, KernelTransformType);
107 itkSetMacro(OutputRegion, OutputImageRegionType);
108 itkGetConstReferenceMacro(OutputRegion, OutputImageRegionType);
112 itkSetMacro(OutputSpacing, SpacingType);
113 virtual void
114 SetOutputSpacing(const double * spacing);
118 itkGetConstReferenceMacro(OutputSpacing, SpacingType);
119
121 itkSetMacro(OutputOrigin, OriginPointType);
122 virtual void
123 SetOutputOrigin(const double * origin);
127 itkSetMacro(OutputDirection, DirectionType);
128 itkGetConstReferenceMacro(OutputDirection, DirectionType);
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:
170 KernelTransformPointerType m_KernelTransform{};
171
173 OutputImageRegionType m_OutputRegion{};
174
175 SpacingType m_OutputSpacing{};
176 OriginPointType m_OutputOrigin{};
177 DirectionType m_OutputDirection{};
178
179 LandmarkContainerPointer m_SourceLandmarks{};
180 LandmarkContainerPointer m_TargetLandmarks{};
181};
182
183} // end namespace itk
184
185#ifndef ITK_MANUAL_INSTANTIATION
186# include "itkLandmarkDisplacementFieldSource.hxx"
187#endif
188
189#endif
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Control indentation during Print() invocation.
Definition: itkIndent.h:50
typename PointSetType::PointsContainer PointsContainer
Computes a displacement field from two sets of landmarks.
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
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::SizeType OutputSizeType
typename LandmarkContainer::ConstPointer LandmarkContainerPointer
typename OutputImageType::IndexType OutputIndexType
typename KernelTransformType::PointSetType LandmarkPointSetType
typename LandmarkPointSetType::PointType LandmarkPointType
typename KernelTransformType::Pointer KernelTransformPointerType
A superclass of the N-dimensional mesh structure; supports point (geometric coordinate and attribute)...
Definition: itkPointSet.h:82
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
SizeValueType ModifiedTimeType
Definition: itkIntTypes.h:105