ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkStrainImageFilter.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 itkStrainImageFilter_h
19 #define itkStrainImageFilter_h
20 
21 #include "itkCovariantVector.h"
22 #include "itkImageToImageFilter.h"
25 
26 namespace itk
27 {
28 
62 template< typename TInputImage, typename TOperatorValueType=float, typename TOutputValueType=float >
63 class StrainImageFilter : public
64  ImageToImageFilter< TInputImage,
65  Image< SymmetricSecondRankTensor< TOutputValueType, TInputImage::ImageDimension >,
66  TInputImage::ImageDimension > >
67 {
68 public:
70  itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
71 
72  typedef TInputImage InputImageType;
76 
80 
83 
84 
89 
92 
94  itkNewMacro( Self );
95 
97  itkTypeMacro( StrainImageFilter, ImageToImageFilter );
98 
101  itkSetObjectMacro( GradientFilter, GradientFilterType );
102  itkGetObjectMacro( GradientFilter, GradientFilterType );
104 
109  itkSetObjectMacro( VectorGradientFilter, VectorGradientFilterType );
110  itkGetObjectMacro( VectorGradientFilter, VectorGradientFilterType );
112 
119 
120  itkSetMacro( StrainForm, StrainFormType );
121  itkGetConstMacro( StrainForm, StrainFormType );
122 
123 protected:
125 
127 
128  virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
129 
130  virtual void ThreadedGenerateData( const OutputRegionType& outputRegion, ThreadIdType threadId ) ITK_OVERRIDE;
131 
134 
135  virtual void PrintSelf ( std::ostream& os, Indent indent ) const ITK_OVERRIDE;
136 
137 private:
138  ITK_DISALLOW_COPY_AND_ASSIGN(StrainImageFilter);
139 
141 
143 
145 
147 };
148 
149 } // end namespace itk
150 
151 #ifndef ITK_MANUAL_INSTANTIATION
152 #include "itkStrainImageFilter.hxx"
153 #endif
154 
155 #endif
virtual void ThreadedGenerateData(const OutputRegionType &outputRegion, ThreadIdType threadId) override
Superclass::RegionType RegionType
Definition: itkImage.h:137
Image< OutputPixelType, ImageDimension > OutputImageType
Extract components of an Image with multi-component pixels.
Light weight base class for most itk classes.
Image< GradientOutputPixelType, ImageDimension > GradientOutputImageType
Represent a symmetric tensor of second rank.
virtual void BeforeThreadedGenerateData() override
virtual void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< InputImageType, GradientOutputImageType > VectorGradientFilterType
Generate a strain field image from a displacement field image.
static const unsigned int ImageDimension
SymmetricSecondRankTensor< TOutputValueType, ImageDimension > OutputPixelType
InputComponentsImageFilterType::Pointer m_InputComponentsFilter
SmartPointer< Self > Pointer
VectorGradientFilterType::Pointer m_VectorGradientFilter
Image< TOperatorValueType, ImageDimension > OperatorImageType
SmartPointer< const Self > ConstPointer
ImageToImageFilter< InputImageType, OutputImageType > Superclass
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
GradientFilterType::Pointer m_GradientFilter
CovariantVector< TOperatorValueType, ImageDimension > GradientOutputPixelType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itkGetObjectMacro(GradientFilter, GradientFilterType)
ImageToImageFilter< OperatorImageType, GradientOutputImageType > GradientFilterType
A templated class holding a n-Dimensional covariant vector.
OutputImageType::RegionType OutputRegionType
Templated n-dimensional image class.
Definition: itkImage.h:75