ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkSoftThresholdTVImageFilter.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 rtkSoftThresholdTVImageFilter_h
20#define rtkSoftThresholdTVImageFilter_h
21
22#include "rtkConfiguration.h"
23#include "vnl/vnl_matrix.h"
24#include "vnl/vnl_vector_fixed.h"
25#include <itkImage.h>
28#include <itkVector.h>
29
30namespace rtk
31{
43template <typename TInputImage, typename TOutputImage = TInputImage>
44class ITK_TEMPLATE_EXPORT SoftThresholdTVImageFilter : public itk::ImageToImageFilter<TInputImage, TOutputImage>
45{
46public:
47 ITK_DISALLOW_COPY_AND_MOVE(SoftThresholdTVImageFilter);
48
54
56 itkNewMacro(Self);
57
59 itkOverrideGetNameOfClassMacro(SoftThresholdTVImageFilter);
60
63 using OutputPixelType = typename TOutputImage::PixelType;
64 using InputPixelType = typename TInputImage::PixelType;
65
67 using InputImageType = TInputImage;
68 using OutputImageType = TOutputImage;
69 using InputImagePointer = typename InputImageType::Pointer;
70 using OutputImagePointer = typename OutputImageType::Pointer;
71
73 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
74
76 static constexpr unsigned int VectorDimension = InputPixelType::Dimension;
77
80
84
85 itkGetMacro(Threshold, float);
86 itkSetMacro(Threshold, float);
87
88protected:
90 ~SoftThresholdTVImageFilter() override = default;
91
95 // void BeforeThreadedGenerateData();
96
108 void
109 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
110
111 // using ImageBaseType = typename InputImageType::Superclass;
112
113private:
116};
117} // namespace rtk
118
119#ifndef ITK_MANUAL_INSTANTIATION
120# include "rtkSoftThresholdTVImageFilter.hxx"
121#endif
122
123#endif
Base class for filters that take an image as input and produce an image as output.
typename OutputImageType::RegionType OutputImageRegionType
Implements transparent reference counting.
typename Superclass::OutputImageRegionType OutputImageRegionType
itk::ImageToImageFilter< GradientImageType, GradientImageType > Superclass
~SoftThresholdTVImageFilter() override=default
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
unsigned int ThreadIdType
Definition itkIntTypes.h:98
#define itkSetMacro(name, type)