ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryMedianImageFilter.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 itkBinaryMedianImageFilter_h
19#define itkBinaryMedianImageFilter_h
20
22
23namespace itk
24{
49template <typename TInputImage, typename TOutputImage>
50class ITK_TEMPLATE_EXPORT BinaryMedianImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(BinaryMedianImageFilter);
54
56 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
57 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
58
60 using InputImageType = TInputImage;
61 using OutputImageType = TOutputImage;
62
68
70 itkNewMacro(Self);
71
73 itkOverrideGetNameOfClassMacro(BinaryMedianImageFilter);
74
76 using InputPixelType = typename InputImageType::PixelType;
77 using OutputPixelType = typename OutputImageType::PixelType;
78
79 using InputImageRegionType = typename InputImageType::RegionType;
80 using OutputImageRegionType = typename OutputImageType::RegionType;
81
82 using InputSizeType = typename InputImageType::SizeType;
83
85 itkSetMacro(Radius, InputSizeType);
86
88 itkGetConstReferenceMacro(Radius, InputSizeType);
89
92 itkSetMacro(BackgroundValue, InputPixelType);
93 itkSetMacro(ForegroundValue, InputPixelType);
95
98 itkGetConstReferenceMacro(BackgroundValue, InputPixelType);
99 itkGetConstReferenceMacro(ForegroundValue, InputPixelType);
101
108 void
110
112 itkConceptMacro(InputConvertibleToOutputCheck,
116
117protected:
119 ~BinaryMedianImageFilter() override = default;
120 void
121 PrintSelf(std::ostream & os, Indent indent) const override;
122
133 void
134 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
135
136
137private:
139
142};
143} // end namespace itk
144
145#ifndef ITK_MANUAL_INSTANTIATION
146# include "itkBinaryMedianImageFilter.hxx"
147#endif
148
149#endif
typename OutputImageType::RegionType OutputImageRegionType
~BinaryMedianImageFilter() override=default
typename InputImageType::PixelType InputPixelType
typename InputImageType::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void GenerateInputRequestedRegion() override
ImageToImageFilter< InputImageType, OutputImageType > Superclass
SmartPointer< const Self > ConstPointer
typename OutputImageType::PixelType OutputPixelType
static constexpr unsigned int OutputImageDimension
static constexpr unsigned int InputImageDimension
typename InputImageType::SizeType InputSizeType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....