ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkYenThresholdImageFilter.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
19#ifndef itkYenThresholdImageFilter_h
20#define itkYenThresholdImageFilter_h
21
24
25namespace itk
26{
27
49
50template <typename TInputImage, typename TOutputImage, typename TMaskImage = TOutputImage>
51class ITK_TEMPLATE_EXPORT YenThresholdImageFilter
52 : public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
53{
54public:
55 ITK_DISALLOW_COPY_AND_MOVE(YenThresholdImageFilter);
56
62
64 itkNewMacro(Self);
65
67 itkOverrideGetNameOfClassMacro(YenThresholdImageFilter);
68
69 using InputImageType = TInputImage;
70 using OutputImageType = TOutputImage;
71 using MaskImageType = TMaskImage;
72
74 using InputPixelType = typename InputImageType::PixelType;
75 using OutputPixelType = typename OutputImageType::PixelType;
76 using MaskPixelType = typename MaskImageType::PixelType;
77
79 using InputImagePointer = typename InputImageType::Pointer;
80 using OutputImagePointer = typename OutputImageType::Pointer;
81
82 using InputSizeType = typename InputImageType::SizeType;
83 using InputIndexType = typename InputImageType::IndexType;
84 using InputImageRegionType = typename InputImageType::RegionType;
85 using OutputSizeType = typename OutputImageType::SizeType;
86 using OutputIndexType = typename OutputImageType::IndexType;
87 using OutputImageRegionType = typename OutputImageType::RegionType;
88 using MaskSizeType = typename MaskImageType::SizeType;
89 using MaskIndexType = typename MaskImageType::IndexType;
90 using MaskImageRegionType = typename MaskImageType::RegionType;
91
92 using typename Superclass::HistogramType;
94
96 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
97 static constexpr unsigned int OutputImageDimension = OutputImageType::ImageDimension;
98
99protected:
101 ~YenThresholdImageFilter() override = default;
102};
103
104} // end namespace itk
105
106#endif
Implements transparent reference counting.
Computes the Yen's threshold for an image.
typename InputImageType::Pointer InputImagePointer
typename InputImageType::SizeType InputSizeType
typename OutputImageType::RegionType OutputImageRegionType
typename InputImageType::PixelType InputPixelType
typename MaskImageType::RegionType MaskImageRegionType
typename MaskImageType::PixelType MaskPixelType
YenThresholdCalculator< HistogramType, InputPixelType > CalculatorType
typename OutputImageType::SizeType OutputSizeType
static constexpr unsigned int OutputImageDimension
typename InputImageType::RegionType InputImageRegionType
typename InputImageType::IndexType InputIndexType
typename MaskImageType::SizeType MaskSizeType
static constexpr unsigned int InputImageDimension
typename OutputImageType::Pointer OutputImagePointer
typename MaskImageType::IndexType MaskIndexType
SmartPointer< const Self > ConstPointer
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
typename OutputImageType::IndexType OutputIndexType
typename OutputImageType::PixelType OutputPixelType
~YenThresholdImageFilter() override=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....