ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkCoherenceEnhancingDiffusionImageFilter.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
19//
20// Created by Jean-Marie Mirebeau on 06/03/2014.
21//
22//
23
24#ifndef itkCoherenceEnhancingDiffusionImageFilter_h
25#define itkCoherenceEnhancingDiffusionImageFilter_h
26
28
29
30namespace itk
31{
64template <typename TImage, typename TScalar = typename NumericTraits<typename TImage::PixelType>::RealType>
66{
67public:
68 ITK_DISALLOW_COPY_AND_MOVE(CoherenceEnhancingDiffusionImageFilter);
69
74
76 itkNewMacro(Self);
77
79 itkOverrideGetNameOfClassMacro(CoherenceEnhancingDiffusionImageFilter);
80
83
87
93
94 itkGetMacro(Exponent, ScalarType);
95 itkGetMacro(Lambda, ScalarType);
96 itkGetMacro(Alpha, ScalarType);
97
106
107 itkSetEnumMacro(Enhancement, EnhancementType);
108 itkGetEnumMacro(Enhancement, EnhancementType);
109
110protected:
115
118 {
119 return s <= 0 ? m_Alpha : m_Alpha + (1 - m_Alpha) * exp(-pow(m_Lambda / s, m_Exponent));
120 }
123 {
124 return s <= 0 ? 1 : 1 - (1 - m_Alpha) * exp(-pow(m_Lambda / s, m_Exponent));
125 }
126
129};
130
131} // end namespace itk
132
133#ifndef ITK_MANUAL_INSTANTIATION
134# include "itkCoherenceEnhancingDiffusionImageFilter.hxx"
135#endif
136
137#endif
~CoherenceEnhancingDiffusionImageFilter() override=default
AnisotropicDiffusionLBRImageFilter< TImage, TScalar > Superclass
EigenValuesArrayType EigenValuesTransform(const EigenValuesArrayType &) const override
typename Superclass::InputImageType::ImageDimensionType InputImageDimensionType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)