ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTransformToStrainFilter.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 itkTransformToStrainFilter_h
19#define itkTransformToStrainFilter_h
20
22#include "itkCovariantVector.h"
25
26namespace itk
27{
28
53template <typename TTransform, typename TOperatorValueType = float, typename TOutputValueType = float>
55 : public GenerateImageSource<Image<SymmetricSecondRankTensor<TOutputValueType, TTransform::InputSpaceDimension>,
56 TTransform::InputSpaceDimension>>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(TransformToStrainFilter);
60
62 static constexpr unsigned int ImageDimension = TTransform::InputSpaceDimension;
63 static_assert(TTransform::OutputSpaceDimension == ImageDimension,
64 "Strain requires a transform with equal input and output dimensions.");
65
66 using TransformType = TTransform;
70
74
77
79 itkNewMacro(Self);
80
82 itkOverrideGetNameOfClassMacro(TransformToStrainFilter);
83
87 itkSetGetDecoratedObjectInputMacro(Transform, TransformType);
88
100
102 itkGetConstMacro(StrainForm, StrainFormType);
103
104protected:
106
108
109 void
111 void
112 DynamicThreadedGenerateData(const OutputRegionType & outputRegion) override;
113
114 void
115 PrintSelf(std::ostream & os, Indent indent) const override;
116
117private:
119};
120
121} // end namespace itk
122
123#ifndef ITK_MANUAL_INSTANTIATION
124# include "itkTransformToStrainFilter.hxx"
125#endif
126
127#endif
Decorates any subclass of itkObject with a DataObject API.
Templated n-dimensional image class.
Definition itkImage.h:89
ImageRegion< VImageDimension > RegionType
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
Represent a symmetric tensor of second rank.
SymmetricSecondRankTensor< TOutputValueType, ImageDimension > OutputPixelType
void BeforeThreadedGenerateData() override
void DynamicThreadedGenerateData(const OutputRegionType &outputRegion) override
void PrintSelf(std::ostream &os, Indent indent) const override
Image< OutputPixelType, ImageDimension > OutputImageType
static constexpr unsigned int ImageDimension
GenerateImageSource< OutputImageType > Superclass
DataObjectDecorator< TransformType > TransformInputType
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputRegionType
Transform points and vectors from an input space to an output space.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)