ITK  4.10.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 
54 template< typename TTransform, typename TOperatorValueType=float, typename TOutputValueType=float >
56  GenerateImageSource< Image< SymmetricSecondRankTensor< TOutputValueType, TTransform::InputSpaceDimension >,
57  TTransform::InputSpaceDimension > >
58 {
59 public:
61  itkStaticConstMacro(ImageDimension, unsigned int, TTransform::InputSpaceDimension);
62 
63  typedef TTransform TransformType;
67 
71 
74 
76  itkNewMacro( Self );
77 
80 
84  itkSetGetDecoratedObjectInputMacro(Transform, TransformType);
85 
92 
93  itkSetMacro( StrainForm, StrainFormType );
94  itkGetConstMacro( StrainForm, StrainFormType );
95 
96 protected:
98 
100 
101  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
102  virtual void ThreadedGenerateData( const OutputRegionType& outputRegion, ThreadIdType threadId ) ITK_OVERRIDE;
103 
105 
106 private:
107  TransformToStrainFilter( const Self & ); // purposely not implemented
108  void operator=( const Self & ); // purposely not implemented
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
OutputImageType::RegionType OutputRegionType
SymmetricSecondRankTensor< TOutputValueType, ImageDimension > OutputPixelType
Represent a symmetric tensor of second rank.
Image< OutputPixelType, ImageDimension > OutputImageType
static const unsigned int ImageDimension
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Definition: itkArray.h:30
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 displacement field image.
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
GenerateImageSource< OutputImageType > Superclass
DataObjectDecorator< TransformType > TransformInputType
Templated n-dimensional image class.
Definition: itkImage.h:75