ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkMaximumEntropyThresholdImageFilter.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 itkMaximumEntropyThresholdImageFilter_h
20 #define itkMaximumEntropyThresholdImageFilter_h
21 
24 
25 namespace itk
26 {
27 
51 template<typename TInputImage, typename TOutputImage, typename TMaskImage=TOutputImage>
53  public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
54 {
55 public:
58  typedef HistogramThresholdImageFilter<TInputImage,TOutputImage,
59  TMaskImage> Superclass;
62 
64  itkNewMacro(Self);
65 
68 
69  typedef TInputImage InputImageType;
70  typedef TOutputImage OutputImageType;
71  typedef TMaskImage MaskImageType;
72 
74  typedef typename InputImageType::PixelType InputPixelType;
75  typedef typename OutputImageType::PixelType OutputPixelType;
76  typedef typename MaskImageType::PixelType MaskPixelType;
77 
79  typedef typename InputImageType::Pointer InputImagePointer;
80  typedef typename OutputImageType::Pointer OutputImagePointer;
81 
84  typedef typename InputImageType::RegionType InputImageRegionType;
87  typedef typename OutputImageType::RegionType OutputImageRegionType;
90  typedef typename MaskImageType::RegionType MaskImageRegionType;
91 
94 
96  itkStaticConstMacro(InputImageDimension, unsigned int,
97  InputImageType::ImageDimension );
98  itkStaticConstMacro(OutputImageDimension, unsigned int,
99  OutputImageType::ImageDimension );
101 
102 protected:
104  {
106  }
108 
109 private:
110  ITK_DISALLOW_COPY_AND_ASSIGN(MaximumEntropyThresholdImageFilter);
111 };
112 
113 } // end namespace itk
114 
115 #endif
Threshold an image using a HistogramThresholdCalculator.
Statistics::Histogram< ValueRealType > HistogramType
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
virtual void SetCalculator(CalculatorType *_arg)
Base class for all process objects that output image data.
Threshold an image using the MaximumEntropy Threshold.
MaximumEntropyThresholdCalculator< HistogramType, InputPixelType > CalculatorType
Computes the MaximumEntropy&#39;s threshold for an image.