ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtkConditionalMedianImageFilter.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 rtkConditionalMedianImageFilter_h
19#define rtkConditionalMedianImageFilter_h
20
23#include <itkVectorImage.h>
24
25#include "RTKExport.h"
26#include "rtkMacro.h"
27
28namespace rtk
29{
48template <typename TInputImage>
49class ITK_TEMPLATE_EXPORT ConditionalMedianImageFilter : public itk::ImageToImageFilter<TInputImage, TInputImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(ConditionalMedianImageFilter);
53
59
61 itkNewMacro(Self);
62
64 itkOverrideGetNameOfClassMacro(ConditionalMedianImageFilter);
65
68 itkGetMacro(Radius, MedianRadiusType);
69
71 itkSetMacro(ThresholdMultiplier, double);
72 itkGetMacro(ThresholdMultiplier, double);
73
74protected:
76 ~ConditionalMedianImageFilter() override = default;
77
78 void
80
82 void
83 DynamicThreadedGenerateData(const typename TInputImage::RegionType & outputRegionForThread) override;
84
87};
88
89} // namespace rtk
90
91
92#ifndef ITK_MANUAL_INSTANTIATION
93# include "rtkConditionalMedianImageFilter.hxx"
94#endif
95
96#endif // rtkConditionalMedianImageFilter_h
itk::Size< VDimension > RadiusType
Base class for filters that take an image as input and produce an image as output.
Implements transparent reference counting.
void DynamicThreadedGenerateData(const typename TInputImage::RegionType &outputRegionForThread) override
~ConditionalMedianImageFilter() override=default
itk::ImageToImageFilter< TInputImage, TInputImage > Superclass
typename itk::ConstNeighborhoodIterator< TInputImage >::RadiusType MedianRadiusType
void GenerateInputRequestedRegion() override
#define itkSetMacro(name, type)