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