ITK  5.4.0
Insight Toolkit
itkHessian3DToVesselnessMeasureImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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 itkHessian3DToVesselnessMeasureImageFilter_h
19#define itkHessian3DToVesselnessMeasureImageFilter_h
20
23
24namespace itk
25{
76template <typename TPixel>
78 : public ImageToImageFilter<Image<SymmetricSecondRankTensor<double, 3>, 3>, Image<TPixel, 3>>
79{
80public:
81 ITK_DISALLOW_COPY_AND_MOVE(Hessian3DToVesselnessMeasureImageFilter);
82
86
89
90 using typename Superclass::InputImageType;
91 using typename Superclass::OutputImageType;
93 using OutputPixelType = TPixel;
94
96 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
97 static constexpr unsigned int InputPixelDimension = InputPixelType::Dimension;
98
103
105 itkOverrideGetNameOfClassMacro(Hessian3DToVesselnessMeasureImageFilter);
106
108 itkNewMacro(Self);
109
112 itkSetMacro(Alpha1, double);
113 itkGetConstMacro(Alpha1, double);
118 itkSetMacro(Alpha2, double);
119 itkGetConstMacro(Alpha2, double);
122#ifdef ITK_USE_CONCEPT_CHECKING
123 // Begin concept checking
124 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, OutputPixelType>));
125 // End concept checking
126#endif
127
128protected:
131 void
132 PrintSelf(std::ostream & os, Indent indent) const override;
133
135 void
136 GenerateData() override;
137
138private:
139 typename EigenAnalysisFilterType::Pointer m_SymmetricEigenValueFilter{};
140
141 double m_Alpha1{};
142 double m_Alpha2{};
143};
144} // end namespace itk
145
146#ifndef ITK_MANUAL_INSTANTIATION
147# include "itkHessian3DToVesselnessMeasureImageFilter.hxx"
148#endif
149
150#endif
Simulate a standard C array with copy semantics.
Definition: itkFixedArray.h:54
Line filter to provide a vesselness measure for tubular objects from the hessian matrix.
~Hessian3DToVesselnessMeasureImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition: itkImage.h:89
TPixel PixelType
Definition: itkImage.h:108
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Computes the eigen-values of every input symmetric matrix pixel.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....