ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkHessianImageFilter.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 itkHessianImageFilter_h
19 #define itkHessianImageFilter_h
20 
21 #include "itkImage.h"
22 #include "itkImageToImageFilter.h"
24 
25 namespace itk
26 {
27 
41 template <typename TInputImage,
42  typename TOutputImage = Image< SymmetricSecondRankTensor<
44  TInputImage::ImageDimension >,
45  TInputImage::ImageDimension > >
47  public ImageToImageFilter< TInputImage, TOutputImage>
48 {
49 public:
50  ITK_DISALLOW_COPY_AND_ASSIGN(HessianImageFilter);
51 
57 
58 
60  using InputImageType = TInputImage;
61  using PixelType = typename InputImageType::PixelType;
62 
64  using OutputImageType = TOutputImage;
65  using OutputPixelType = typename OutputImageType::PixelType;
67 
68 
70  itkTypeMacro( HessianImageFilter, ImageToImageFilter );
71 
73  itkNewMacro(Self);
74 
75  void GenerateInputRequestedRegion() override;
76 
77 
78 #ifdef ITK_USE_CONCEPT_CHECKING
79 
80  itkConceptMacro(InputHasNumericTraitsCheck,
82  itkConceptMacro(OutputHasPixelTraitsCheck,
84 
86 #endif
87 
88 protected:
89 
90  HessianImageFilter( void );
91 
92  void DynamicThreadedGenerateData(const OutputImageRegionType& outputRegionForThread) override;
93 };
94 
95 } // end namespace itk
96 
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
99 #include "itkHessianImageFilter.hxx"
100 #endif
101 
102 
103 #endif //itkHessianImageFilter_h
typename OutputImageType::PixelType OutputPixelType
Define numeric traits for std::vector.
Computes the Hessian matrix of an image by central differences.
void GenerateInputRequestedRegion() override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename InputImageType::PixelType PixelType
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
#define itkConceptMacro(name, concept)