ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkMovingHistogramMorphologyImageFilter.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 #ifndef __itkMovingHistogramMorphologyImageFilter_h
19 #define __itkMovingHistogramMorphologyImageFilter_h
20 
21 #include "itkMorphologyHistogram.h"
23 #include <list>
24 #include <map>
25 
26 namespace itk
27 {
28 
41 template< typename TInputImage, typename TOutputImage, typename TKernel, typename THistogram >
43  public MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >
44 {
45 public:
52 
54  itkNewMacro(Self);
55 
59 
61  typedef TInputImage InputImageType;
62  typedef TOutputImage OutputImageType;
63  typedef typename TInputImage::RegionType RegionType;
64  typedef typename TInputImage::SizeType SizeType;
65  typedef typename TInputImage::IndexType IndexType;
66  typedef typename TInputImage::PixelType PixelType;
67  typedef typename TInputImage::OffsetType OffsetType;
69  typedef typename TOutputImage::PixelType OutputPixelType;
70 
72  itkStaticConstMacro(ImageDimension, unsigned int,
73  TInputImage::ImageDimension);
74 
76  typedef TKernel KernelType;
77 
79  typedef typename KernelType::ConstIterator KernelIteratorType;
80 
82  typedef typename KernelType::SizeType RadiusType;
83 
84  typedef typename std::list< OffsetType > OffsetListType;
85 
86  typedef typename std::map< OffsetType, OffsetListType, typename OffsetType::LexicographicCompare > OffsetMapType;
87 
89  itkSetMacro(Boundary, PixelType);
90  itkGetConstMacro(Boundary, PixelType);
92 
96  { return THistogram::UseVectorBasedAlgorithm(); }
97 
98 protected:
101  void PrintSelf(std::ostream & os, Indent indent) const;
102 
104 // void ThreadedGenerateData (const OutputImageRegionType&
105 // outputRegionForThread,
106 // ThreadIdType threadId);
107 
109  virtual void ConfigureHistogram(THistogram & histogram);
110 
112 
113 private:
114  MovingHistogramMorphologyImageFilter(const Self &); //purposely not
115  // implemented
116  void operator=(const Self &); //purposely not
117  // implemented
118 }; // end of class
119 } // end namespace itk
120 
121 #ifndef ITK_MANUAL_INSTANTIATION
122 #include "itkMovingHistogramMorphologyImageFilter.hxx"
123 #endif
124 
125 #endif
std::map< OffsetType, OffsetListType, typename OffsetType::LexicographicCompare > OffsetMapType
Implements a generic moving histogram algorithm.
Base class for all process objects that output image data.
Superclass::OutputImageRegionType OutputImageRegionType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void ConfigureHistogram(THistogram &histogram)
MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram > Superclass
base class for MovingHistogramDilateImageFilter and MovingHistogramErodeImageFilter ...
void PrintSelf(std::ostream &os, Indent indent) const