ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkLiThresholdImageFilter.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 __itkLiThresholdImageFilter_h
20 #define __itkLiThresholdImageFilter_h
21 
24 
25 namespace itk {
26 
50 template<typename TInputImage, typename TOutputImage, typename TMaskImage=TOutputImage>
52  public HistogramThresholdImageFilter<TInputImage, TOutputImage, TMaskImage>
53 {
54 public:
57  typedef HistogramThresholdImageFilter<TInputImage,TOutputImage,
58  TMaskImage> Superclass;
61 
63  itkNewMacro(Self);
64 
67 
68  typedef TInputImage InputImageType;
69  typedef TOutputImage OutputImageType;
70  typedef TMaskImage MaskImageType;
71 
73  typedef typename InputImageType::PixelType InputPixelType;
74  typedef typename OutputImageType::PixelType OutputPixelType;
75  typedef typename MaskImageType::PixelType MaskPixelType;
76 
78  typedef typename InputImageType::Pointer InputImagePointer;
79  typedef typename OutputImageType::Pointer OutputImagePointer;
80 
81  typedef typename InputImageType::SizeType InputSizeType;
82  typedef typename InputImageType::IndexType InputIndexType;
83  typedef typename InputImageType::RegionType InputImageRegionType;
84  typedef typename OutputImageType::SizeType OutputSizeType;
85  typedef typename OutputImageType::IndexType OutputIndexType;
86  typedef typename OutputImageType::RegionType OutputImageRegionType;
87  typedef typename MaskImageType::SizeType MaskSizeType;
88  typedef typename MaskImageType::IndexType MaskIndexType;
89  typedef typename MaskImageType::RegionType MaskImageRegionType;
90 
93 
95  itkStaticConstMacro(InputImageDimension, unsigned int,
96  InputImageType::ImageDimension );
97  itkStaticConstMacro(OutputImageDimension, unsigned int,
98  OutputImageType::ImageDimension );
100 
101 protected:
103  {
105  }
107 
108 private:
109  LiThresholdImageFilter(const Self&); //purposely not implemented
110  void operator=(const Self&); //purposely not implemented
111 }; // end of class
112 
113 } // end namespace itk
114 
115 #endif
Threshold an image using a HistogramThresholdCalculator.
static const unsigned int OutputImageDimension
Threshold an image using the Li Threshold.
OutputImageType::RegionType OutputImageRegionType
Statistics::Histogram< ValueRealType > HistogramType
InputImageType::RegionType InputImageRegionType
Superclass::HistogramType HistogramType
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
virtual void SetCalculator(CalculatorType *_arg)
MaskImageType::PixelType MaskPixelType
InputImageType::SizeType InputSizeType
InputImageType::IndexType InputIndexType
MaskImageType::IndexType MaskIndexType
Base class for all process objects that output image data.
LiThresholdCalculator< HistogramType, InputPixelType > CalculatorType
MaskImageType::RegionType MaskImageRegionType
Computes the Li threshold for an image. Aka intermeans.
OutputImageType::IndexType OutputIndexType
InputImageType::Pointer InputImagePointer
void operator=(const Self &)
InputImageType::PixelType InputPixelType
static const unsigned int InputImageDimension
MaskImageType::SizeType MaskSizeType
OutputImageType::PixelType OutputPixelType
SmartPointer< const Self > ConstPointer
OutputImageType::Pointer OutputImagePointer
OutputImageType::SizeType OutputSizeType