ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkYenThresholdImageFilter.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 itkYenThresholdImageFilter_h
20 #define itkYenThresholdImageFilter_h
21 
24 
25 namespace itk {
26 
49 template<typename TInputImage, typename TOutputImage, typename TMaskImage=TOutputImage>
51  public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
52 {
53 public:
56  typedef HistogramThresholdImageFilter<TInputImage,TOutputImage,
57  TMaskImage> Superclass;
60 
62  itkNewMacro(Self);
63 
66 
67  typedef TInputImage InputImageType;
68  typedef TOutputImage OutputImageType;
69  typedef TMaskImage MaskImageType;
70 
72  typedef typename InputImageType::PixelType InputPixelType;
73  typedef typename OutputImageType::PixelType OutputPixelType;
74  typedef typename MaskImageType::PixelType MaskPixelType;
75 
77  typedef typename InputImageType::Pointer InputImagePointer;
78  typedef typename OutputImageType::Pointer OutputImagePointer;
79 
80  typedef typename InputImageType::SizeType InputSizeType;
81  typedef typename InputImageType::IndexType InputIndexType;
82  typedef typename InputImageType::RegionType InputImageRegionType;
83  typedef typename OutputImageType::SizeType OutputSizeType;
84  typedef typename OutputImageType::IndexType OutputIndexType;
85  typedef typename OutputImageType::RegionType OutputImageRegionType;
86  typedef typename MaskImageType::SizeType MaskSizeType;
87  typedef typename MaskImageType::IndexType MaskIndexType;
88  typedef typename MaskImageType::RegionType MaskImageRegionType;
89 
92 
94  itkStaticConstMacro(InputImageDimension, unsigned int,
95  InputImageType::ImageDimension );
96  itkStaticConstMacro(OutputImageDimension, unsigned int,
97  OutputImageType::ImageDimension );
99 
100 protected:
102  {
104  }
106 
107 private:
108  YenThresholdImageFilter(const Self&) ITK_DELETE_FUNCTION;
109  void operator=(const Self&) ITK_DELETE_FUNCTION;
110 }; // end of class
111 
112 } // end namespace itk
113 
114 #endif
Threshold an image using a HistogramThresholdCalculator.
static const unsigned int InputImageDimension
Statistics::Histogram< ValueRealType > HistogramType
Threshold an image using the Yen Threshold.
InputImageType::Pointer InputImagePointer
OutputImageType::RegionType OutputImageRegionType
virtual void SetCalculator(CalculatorType *_arg)
static const unsigned int OutputImageDimension
Base class for all process objects that output image data.
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
Computes the Yen&#39;s threshold for an image.
YenThresholdCalculator< HistogramType, InputPixelType > CalculatorType
InputImageType::IndexType InputIndexType
SmartPointer< const Self > ConstPointer
MaskImageType::IndexType MaskIndexType
OutputImageType::IndexType OutputIndexType
InputImageType::SizeType InputSizeType
OutputImageType::SizeType OutputSizeType
Superclass::HistogramType HistogramType
OutputImageType::PixelType OutputPixelType
InputImageType::RegionType InputImageRegionType
OutputImageType::Pointer OutputImagePointer
MaskImageType::PixelType MaskPixelType
InputImageType::PixelType InputPixelType
MaskImageType::RegionType MaskImageRegionType