ITK  4.13.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 
42 template< typename TInputImage, typename TOutputImage, typename TKernel, typename THistogram >
43 class ITK_TEMPLATE_EXPORT MovingHistogramMorphologyImageFilter:
44  public MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >
45 {
46 public:
53 
55  itkNewMacro(Self);
56 
60 
62  typedef TInputImage InputImageType;
63  typedef TOutputImage OutputImageType;
64  typedef typename TInputImage::RegionType RegionType;
65  typedef typename TInputImage::SizeType SizeType;
67  typedef typename TInputImage::PixelType PixelType;
68  typedef typename TInputImage::OffsetType OffsetType;
69  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
70  typedef typename TOutputImage::PixelType OutputPixelType;
71 
73  itkStaticConstMacro(ImageDimension, unsigned int,
74  TInputImage::ImageDimension);
75 
77  typedef TKernel KernelType;
78 
80  typedef typename KernelType::ConstIterator KernelIteratorType;
81 
83  typedef typename KernelType::SizeType RadiusType;
84 
85  typedef typename std::list< OffsetType > OffsetListType;
86 
87  typedef typename std::map< OffsetType, OffsetListType, typename OffsetType::LexicographicCompare > OffsetMapType;
88 
91  itkSetMacro(Boundary, PixelType);
92  itkGetConstMacro(Boundary, PixelType);
94 
98  { return THistogram::UseVectorBasedAlgorithm(); }
99 
100 protected:
103  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
104 
106 // void ThreadedGenerateData (const OutputImageRegionType&
107 // outputRegionForThread,
108 // ThreadIdType threadId);
109 
112  virtual void ConfigureHistogram(THistogram & histogram) ITK_OVERRIDE;
113 
115 
116 private:
117  ITK_DISALLOW_COPY_AND_ASSIGN(MovingHistogramMorphologyImageFilter);
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.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram > Superclass
Base class for MovingHistogramDilateImageFilter and MovingHistogramErodeImageFilter.