ITK  4.13.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:
60  itkStaticConstMacro(ImageDimension, unsigned int, TTransform::InputSpaceDimension);
61 
62  typedef TTransform TransformType;
66 
70 
73 
75  itkNewMacro( Self );
76 
79 
83  itkSetGetDecoratedObjectInputMacro(Transform, TransformType);
84 
91 
92  itkSetMacro( StrainForm, StrainFormType );
93  itkGetConstMacro( StrainForm, StrainFormType );
94 
95 protected:
97 
99 
100  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
101  virtual void ThreadedGenerateData( const OutputRegionType& outputRegion, ThreadIdType threadId ) ITK_OVERRIDE;
102 
103  virtual void PrintSelf ( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
104 
105 private:
106  ITK_DISALLOW_COPY_AND_ASSIGN(TransformToStrainFilter);
107 
109 };
110 
111 } // end namespace itk
112 
113 #ifndef ITK_MANUAL_INSTANTIATION
114 #include "itkTransformToStrainFilter.hxx"
115 #endif
116 
117 #endif
Superclass::RegionType RegionType
Definition: itkImage.h:137
virtual void PrintSelf(std::ostream &os, Indent indent) const override
OutputImageType::RegionType OutputRegionType
Light weight base class for most itk classes.
SymmetricSecondRankTensor< TOutputValueType, ImageDimension > OutputPixelType
Represent a symmetric tensor of second rank.
Image< OutputPixelType, ImageDimension > OutputImageType
static const unsigned int ImageDimension
virtual void ThreadedGenerateData(const OutputRegionType &outputRegion, ThreadIdType threadId) override
Transform points and vectors from an input space to an output space.
Definition: itkTransform.h:82
SmartPointer< const Self > ConstPointer
Decorates any subclass of itkObject with a DataObject API.
virtual void BeforeThreadedGenerateData() override
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.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
Control indentation during Print() invocation.
Definition: itkIndent.h:49
GenerateImageSource< OutputImageType > Superclass
DataObjectDecorator< TransformType > TransformInputType
Templated n-dimensional image class.
Definition: itkImage.h:75