ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkDaubechiesWaveletsDenoiseSequenceImageFilter.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
19#ifndef rtkDaubechiesWaveletsDenoiseSequenceImageFilter_h
20#define rtkDaubechiesWaveletsDenoiseSequenceImageFilter_h
21
23
25#include <itkCastImageFilter.h>
27#include <itkPasteImageFilter.h>
28
29namespace rtk
30{
72
73template <typename TImageSequence>
75 : public itk::ImageToImageFilter<TImageSequence, TImageSequence>
76{
77public:
78 ITK_DISALLOW_COPY_AND_MOVE(DaubechiesWaveletsDenoiseSequenceImageFilter);
79
84
86 itkNewMacro(Self);
87
89 itkOverrideGetNameOfClassMacro(DaubechiesWaveletsDenoiseSequenceImageFilter);
90
92 itkGetMacro(NumberOfLevels, unsigned int);
93 itkSetMacro(NumberOfLevels, unsigned int);
94
96 itkGetMacro(Order, unsigned int);
97 itkSetMacro(Order, unsigned int);
98
100 itkGetMacro(Threshold, float);
101 itkSetMacro(Threshold, float);
102
104 using TImage = itk::Image<typename TImageSequence::PixelType, TImageSequence::ImageDimension - 1>;
110
111protected:
114
116 void
117 GenerateData() override;
118
119 void
121 void
123
130
132 typename TImageSequence::RegionType m_ExtractAndPasteRegion;
133
135 unsigned int m_Order{ 5 };
136 float m_Threshold{ 1 };
137 unsigned int m_NumberOfLevels{ 3 };
138};
139} // namespace rtk
140
141
142#ifndef ITK_MANUAL_INSTANTIATION
143# include "rtkDaubechiesWaveletsDenoiseSequenceImageFilter.hxx"
144#endif
145
146#endif
Casts input pixels to output pixel type.
SmartPointer< Self > Pointer
Decrease the image size by cropping the image to the selected region bounds.
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
Paste an image (or a constant value) into another image.
SmartPointer< Self > Pointer
Implements transparent reference counting.
Generate an n-dimensional image with constant pixel values.
itk::PasteImageFilter< TImageSequence, TImageSequence > PasteFilterType
itk::Image< typename TImageSequence::PixelType, TImageSequence::ImageDimension - 1 > TImage
~DaubechiesWaveletsDenoiseSequenceImageFilter() override=default
itk::ImageToImageFilter< TImageSequence, TImageSequence > Superclass
rtk::DeconstructSoftThresholdReconstructImageFilter< TImage > WaveletsDenoisingFilterType
Deconstructs an image, soft thresholds its wavelets coefficients, then reconstructs.
#define itkSetMacro(name, type)