ITK  5.1.0
Insight Toolkit
itkTriangleThresholdImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software 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  * http://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 
25 namespace itk
26 {
27 
51 template <typename TInputImage, typename TOutputImage, typename TMaskImage = TOutputImage>
52 class TriangleThresholdImageFilter : public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
53 {
54 public:
55  ITK_DISALLOW_COPY_AND_ASSIGN(TriangleThresholdImageFilter);
56 
62 
64  itkNewMacro(Self);
65 
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 
91 
94 
96  static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
97  static constexpr unsigned int OutputImageDimension = OutputImageType::ImageDimension;
98 
99 protected:
101  ~TriangleThresholdImageFilter() override = default;
102 };
103 
104 } // end namespace itk
105 
106 #endif
itk::HistogramThresholdImageFilter::InputIndexType
typename InputImageType::IndexType InputIndexType
Definition: itkHistogramThresholdImageFilter.h:93
itk::ImageSource::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkImageSource.h:91
itk::HistogramThresholdImageFilter::HistogramType
Statistics::Histogram< ValueRealType > HistogramType
Definition: itkHistogramThresholdImageFilter.h:104
itk::TriangleThresholdCalculator::New
static Pointer New()
itk::HistogramThresholdImageFilter::InputPixelType
typename InputImageType::PixelType InputPixelType
Definition: itkHistogramThresholdImageFilter.h:83
itkTriangleThresholdCalculator.h
itk::HistogramThresholdImageFilter::MaskImageRegionType
typename MaskImageType::RegionType MaskImageRegionType
Definition: itkHistogramThresholdImageFilter.h:100
itk::TriangleThresholdImageFilter::TriangleThresholdImageFilter
TriangleThresholdImageFilter()
Definition: itkTriangleThresholdImageFilter.h:100
itk::HistogramThresholdImageFilter::MaskSizeType
typename MaskImageType::SizeType MaskSizeType
Definition: itkHistogramThresholdImageFilter.h:98
itk::GTest::TypedefsAndConstructors::Dimension2::SizeType
ImageBaseType::SizeType SizeType
Definition: itkGTestTypedefsAndConstructors.h:49
itk::HistogramThresholdImageFilter::OutputSizeType
typename OutputImageType::SizeType OutputSizeType
Definition: itkHistogramThresholdImageFilter.h:95
itk::HistogramThresholdImageFilter
Threshold an image using a HistogramThresholdCalculator.
Definition: itkHistogramThresholdImageFilter.h:61
itk::HistogramThresholdImageFilter::OutputPixelType
typename OutputImageType::PixelType OutputPixelType
Definition: itkHistogramThresholdImageFilter.h:84
itk::SmartPointer< Self >
itk::HistogramThresholdImageFilter::OutputIndexType
typename OutputImageType::IndexType OutputIndexType
Definition: itkHistogramThresholdImageFilter.h:96
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageSource
Base class for all process objects that output image data.
Definition: itkImageSource.h:67
itk::Statistics::Histogram
This class stores measurement vectors in the context of n-dimensional histogram.
Definition: itkHistogram.h:76
itk::ImageToImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkImageToImageFilter.h:130
itk::TriangleThresholdImageFilter::InputImageDimension
static constexpr unsigned int InputImageDimension
Definition: itkTriangleThresholdImageFilter.h:96
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::TriangleThresholdImageFilter
Threshold an image using the Triangle Threshold.
Definition: itkTriangleThresholdImageFilter.h:52
itk::HistogramThresholdImageFilter::MaskPixelType
typename MaskImageType::PixelType MaskPixelType
Definition: itkHistogramThresholdImageFilter.h:85
itk::ImageToImageFilter::InputImageType
TInputImage InputImageType
Definition: itkImageToImageFilter.h:129
itk::HistogramThresholdImageFilter::InputSizeType
typename InputImageType::SizeType InputSizeType
Definition: itkHistogramThresholdImageFilter.h:92
itk::HistogramThresholdImageFilter::MaskImageType
TMaskImage MaskImageType
Definition: itkHistogramThresholdImageFilter.h:80
itk::HistogramThresholdCalculator
Base class to compute a threshold value based on the histogram of an image.
Definition: itkHistogramThresholdCalculator.h:46
itk::ImageSource::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkImageSource.h:92
itk::HistogramThresholdImageFilter::SetCalculator
virtual void SetCalculator(CalculatorType *_arg)
itk::HistogramThresholdImageFilter::MaskIndexType
typename MaskImageType::IndexType MaskIndexType
Definition: itkHistogramThresholdImageFilter.h:99
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::ProcessObject
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Definition: itkProcessObject.h:135
itkHistogramThresholdImageFilter.h
itk::TriangleThresholdImageFilter::~TriangleThresholdImageFilter
~TriangleThresholdImageFilter() override=default
itk::TriangleThresholdImageFilter::OutputImageDimension
static constexpr unsigned int OutputImageDimension
Definition: itkTriangleThresholdImageFilter.h:97
itk::TriangleThresholdCalculator
Computes the Triangle's threshold for an image.
Definition: itkTriangleThresholdCalculator.h:52
itk::ImageToImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkImageToImageFilter.h:132
itk::ImageSource::OutputImageType
TOutputImage OutputImageType
Definition: itkImageSource.h:90