ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkAnisotropicDiffusionLBRImageFilter.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//
21// Created by Jean-Marie Mirebeau on 28/02/2014.
22//
23//
24
25#ifndef itkAnisotropicDiffusionLBRImageFilter_h
26#define itkAnisotropicDiffusionLBRImageFilter_h
27
30
31namespace itk
32{
33
47template <typename TImage, typename TScalar = typename NumericTraits<typename TImage::PixelType>::RealType>
49{
50public:
51 ITK_DISALLOW_COPY_AND_MOVE(AnisotropicDiffusionLBRImageFilter);
52
57
59 itkNewMacro(Self);
61 itkOverrideGetNameOfClassMacro(AnisotropicDiffusionLBRImageFilter);
62
63 using ImageType = TImage;
64 using PixelType = typename ImageType::PixelType;
65 using ScalarType = TScalar;
66
67 using ImageDimensionType = typename ImageType::ImageDimensionType;
68 static constexpr ImageDimensionType ImageDimension = ImageType::ImageDimension;
69
72
75
77 itkSetMacro(NoiseScale, ScalarType);
78 itkGetConstMacro(NoiseScale, ScalarType);
79 itkSetMacro(FeatureScale, ScalarType);
80 itkGetConstMacro(FeatureScale, ScalarType);
81
83 itkSetMacro(RatioToMaxStableTimeStep, ScalarType);
84 itkGetConstMacro(RatioToMaxStableTimeStep, ScalarType);
85 itkSetMacro(MaxTimeStepsBetweenTensorUpdates, int);
86 itkGetConstMacro(MaxTimeStepsBetweenTensorUpdates, int);
87
88 itkSetMacro(DiffusionTime, ScalarType);
89 itkGetConstMacro(DiffusionTime, ScalarType);
90
93 itkSetMacro(Adimensionize, bool);
94 itkGetConstMacro(Adimensionize, bool);
95
102 {
103 itkExceptionMacro("Undefined tensor eigenvalues transform");
104 }
105
106 virtual typename TensorImageType::Pointer
108 {
109 return m_TensorImage;
110 }
111 using EffectiveTimesAndIterationsType = std::vector<std::pair<ScalarType, int>>;
112 itkGetConstReferenceMacro(LinearFilterEffectiveTimesAndIterations, EffectiveTimesAndIterationsType);
113
114protected:
117
120
123
125
126 virtual void
128
130 bool m_Adimensionize{ true };
131
132 void
133 GenerateData() override;
134
136
137 struct DiffusionTensorFunctor;
138};
139
140} // end namespace itk
141
142#ifndef ITK_MANUAL_INSTANTIATION
143# include "itkAnisotropicDiffusionLBRImageFilter.hxx"
144#endif
145
146#endif
LinearAnisotropicDiffusionLBRImageFilter< ImageType, ScalarType > LinearDiffusionFilterType
virtual EigenValuesArrayType EigenValuesTransform(const EigenValuesArrayType &) const
SymmetricSecondRankTensor< ScalarType, ImageDimension > TensorType
GradientStructureTensorImageFilter< ImageType, TensorImageType > StructureTensorFilterType
~AnisotropicDiffusionLBRImageFilter() override=default
virtual void ComputeDiffusionTensors(ImageType *)
typename ImageType::ImageDimensionType ImageDimensionType
typename TensorType::EigenValuesArrayType EigenValuesArrayType
std::vector< std::pair< ScalarType, int > > EffectiveTimesAndIterationsType
Templated n-dimensional image class.
Definition itkImage.h:89
Anisotropic diffusion using lattice basis reduction.
Implements transparent reference counting.
Represent a symmetric tensor of second rank.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)