ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkLastDimensionL0GradientDenoisingImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright RTK 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 * 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 rtkLastDimensionL0GradientDenoisingImageFilter_h
19#define rtkLastDimensionL0GradientDenoisingImageFilter_h
20
22
24
25namespace rtk
26{
41template <class TInputImage>
42
44 : public itk::InPlaceImageFilter<TInputImage, TInputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(LastDimensionL0GradientDenoisingImageFilter);
48
53 using InputPixelType = typename TInputImage::PixelType;
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(LastDimensionL0GradientDenoisingImageFilter);
60
62 itkGetMacro(Lambda, double);
63 itkSetMacro(Lambda, double);
64
66 itkGetMacro(NumberOfIterations, unsigned int);
67 itkSetMacro(NumberOfIterations, unsigned int);
68
69protected:
72
73 void
75
77 void
78 ThreadedGenerateData(const typename TInputImage::RegionType & outputRegionForThread,
79 itk::ThreadIdType itkNotUsed(threadId)) override;
80
82 [[nodiscard]] const itk::ImageRegionSplitterBase *
83 GetImageRegionSplitter() const override;
85
86 virtual void
88 unsigned int length,
89 double lambda,
90 unsigned int nbIters);
91
92 double m_Lambda;
94};
95} // namespace rtk
96
97
98#ifndef ITK_MANUAL_INSTANTIATION
99# include "rtkLastDimensionL0GradientDenoisingImageFilter.hxx"
100#endif
101
102#endif
Divide an image region into several pieces.
Base class for filters that take an image as input and overwrite that image as the output.
Implements transparent reference counting.
void ThreadedGenerateData(const typename TInputImage::RegionType &outputRegionForThread, itk::ThreadIdType threadId) override
virtual void OneDimensionMinimizeL0NormOfGradient(InputPixelType *input, unsigned int length, double lambda, unsigned int nbIters)
~LastDimensionL0GradientDenoisingImageFilter() override=default
const itk::ImageRegionSplitterBase * GetImageRegionSplitter() const override
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)