ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSpeckleReducingAnisotropicDiffusionImageFilter.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 itkSpeckleReducingAnisotropicDiffusionImageFilter_h
19#define itkSpeckleReducingAnisotropicDiffusionImageFilter_h
20
23
24namespace itk
25{
51template <typename TInputImage, typename TOutputImage = TInputImage>
53 : public AnisotropicDiffusionImageFilter<TInputImage, TOutputImage>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(SpeckleReducingAnisotropicDiffusionImageFilter);
57
63
65 itkNewMacro(Self);
66
68 itkOverrideGetNameOfClassMacro(SpeckleReducingAnisotropicDiffusionImageFilter);
69
72
74 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
75
76#ifdef ITK_USE_CONCEPT_CHECKING
77 // Begin concept checking
79 // End concept checking
80#endif
81
82 itkSetMacro(Rho, double);
83 itkGetConstMacro(Rho, double);
84
85 itkSetMacro(Q0, double);
86 itkGetConstMacro(Q0, double);
87
88protected:
97
99
101 void
103 {
105 this->GetDifferenceFunction().GetPointer());
106 if (!f)
107 {
108 throw ExceptionObject(
109 __FILE__, __LINE__, "Speckle reducing anisotropic diffusion function is not set.", ITK_LOCATION);
110 }
111
112 f->SetRho(this->m_Rho);
113 f->SetQ0(this->m_Q0);
114 f->SetElapsedIterationCount(this->m_ElapsedIterations);
115
117 }
118
120 double m_Rho;
123 double m_Q0;
124};
125} // namespace itk
126
127#endif
Standard exception handling object.
virtual const FiniteDifferenceFunctionType::Pointer & GetDifferenceFunction() const
virtual void SetDifferenceFunction(FiniteDifferenceFunctionType *_arg)
Implements transparent reference counting.
AnisotropicDiffusionImageFilter< TInputImage, TOutputImage > Superclass
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)