ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLiThresholdImageFilter.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 itkLiThresholdImageFilter_h
20#define itkLiThresholdImageFilter_h
21
24
25namespace itk
26{
27
54
55template <typename TInputImage, typename TOutputImage, typename TMaskImage = TOutputImage>
56class ITK_TEMPLATE_EXPORT LiThresholdImageFilter
57 : public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
58{
59public:
60 ITK_DISALLOW_COPY_AND_MOVE(LiThresholdImageFilter);
61
67
69 itkNewMacro(Self);
70
72 itkOverrideGetNameOfClassMacro(LiThresholdImageFilter);
73
74 using InputImageType = TInputImage;
75 using OutputImageType = TOutputImage;
76 using MaskImageType = TMaskImage;
77
79 using InputPixelType = typename InputImageType::PixelType;
80 using OutputPixelType = typename OutputImageType::PixelType;
81 using MaskPixelType = typename MaskImageType::PixelType;
82
84 using InputImagePointer = typename InputImageType::Pointer;
85 using OutputImagePointer = typename OutputImageType::Pointer;
86
87 using InputSizeType = typename InputImageType::SizeType;
88 using InputIndexType = typename InputImageType::IndexType;
89 using InputImageRegionType = typename InputImageType::RegionType;
90 using OutputSizeType = typename OutputImageType::SizeType;
91 using OutputIndexType = typename OutputImageType::IndexType;
92 using OutputImageRegionType = typename OutputImageType::RegionType;
93 using MaskSizeType = typename MaskImageType::SizeType;
94 using MaskIndexType = typename MaskImageType::IndexType;
95 using MaskImageRegionType = typename MaskImageType::RegionType;
96
97 using typename Superclass::HistogramType;
99
101 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
102 static constexpr unsigned int OutputImageDimension = OutputImageType::ImageDimension;
103
104protected:
106 ~LiThresholdImageFilter() override = default;
107};
108
109} // end namespace itk
110
111#endif
Computes the Li threshold for an image. Aka intermeans.
typename OutputImageType::SizeType OutputSizeType
typename MaskImageType::SizeType MaskSizeType
typename MaskImageType::IndexType MaskIndexType
LiThresholdCalculator< HistogramType, InputPixelType > CalculatorType
typename OutputImageType::IndexType OutputIndexType
typename InputImageType::PixelType InputPixelType
typename InputImageType::IndexType InputIndexType
typename OutputImageType::Pointer OutputImagePointer
typename OutputImageType::RegionType OutputImageRegionType
typename MaskImageType::RegionType MaskImageRegionType
typename OutputImageType::PixelType OutputPixelType
static constexpr unsigned int OutputImageDimension
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
typename InputImageType::SizeType InputSizeType
typename InputImageType::RegionType InputImageRegionType
typename MaskImageType::PixelType MaskPixelType
~LiThresholdImageFilter() override=default
typename InputImageType::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
static constexpr unsigned int InputImageDimension
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....