ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkTransformToStrainFilter.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 itkTransformToStrainFilter_h
19 #define itkTransformToStrainFilter_h
20 
21 #include "itkDataObjectDecorator.h"
22 #include "itkCovariantVector.h"
23 #include "itkGenerateImageSource.h"
25 
26 namespace itk
27 {
28 
53 template< typename TTransform, typename TOperatorValueType=float, typename TOutputValueType=float >
55  GenerateImageSource< Image< SymmetricSecondRankTensor< TOutputValueType, TTransform::InputSpaceDimension >,
56  TTransform::InputSpaceDimension > >
57 {
58 public:
59  ITK_DISALLOW_COPY_AND_ASSIGN(TransformToStrainFilter);
60 
62  static constexpr unsigned int ImageDimension = TTransform::InputSpaceDimension;
63 
64  using TransformType = TTransform;
68 
72 
75 
77  itkNewMacro( Self );
78 
81 
85  itkSetGetDecoratedObjectInputMacro(Transform, TransformType);
86 
93 
94  itkSetMacro( StrainForm, StrainFormType );
95  itkGetConstMacro( StrainForm, StrainFormType );
96 
97 protected:
99 
101 
102  void BeforeThreadedGenerateData() override;
103  void DynamicThreadedGenerateData( const OutputRegionType& outputRegion ) override;
104 
105  void PrintSelf ( std::ostream& os, Indent indent ) const override;
106 
107 private:
109 };
110 
111 } // end namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkTransformToStrainFilter.hxx"
115 #endif
116 
117 #endif
typename OutputImageType::RegionType OutputRegionType
Light weight base class for most itk classes.
Represent a symmetric tensor of second rank.
void BeforeThreadedGenerateData() override
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:83
Decorates any subclass of itkObject with a DataObject API.
typename Superclass::RegionType RegionType
Definition: itkImage.h:139
a Base class for image sources which need to have image size, and other meta-data set...
Generate a strain field image from a transform.
void DynamicThreadedGenerateData(const OutputRegionType &outputRegion) override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
static constexpr unsigned int ImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
Templated n-dimensional image class.
Definition: itkImage.h:75