ITK  5.0.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"
24 #include <list>
25 #include <map>
26 
27 namespace itk
28 {
29 
43 template< typename TInputImage, typename TOutputImage, typename TKernel, typename THistogram >
44 class ITK_TEMPLATE_EXPORT MovingHistogramMorphologyImageFilter:
45  public MovingHistogramImageFilter< TInputImage, TOutputImage, TKernel, THistogram >
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_ASSIGN(MovingHistogramMorphologyImageFilter);
49 
52  using Superclass =
56 
58  itkNewMacro(Self);
59 
63 
65  using InputImageType = TInputImage;
66  using OutputImageType = TOutputImage;
68  using SizeType = typename TInputImage::SizeType;
70  using PixelType = typename TInputImage::PixelType;
71  using OffsetType = typename TInputImage::OffsetType;
72  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
73  using OutputPixelType = typename TOutputImage::PixelType;
74 
76  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
77 
79  using KernelType = TKernel;
80 
82  using KernelIteratorType = typename KernelType::ConstIterator;
83 
85  using RadiusType = typename KernelType::SizeType;
86 
87  using OffsetListType = typename std::list< OffsetType >;
88 
89  using OffsetMapType = typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare >;
90 
93  itkSetMacro(Boundary, PixelType);
94  itkGetConstMacro(Boundary, PixelType);
96 
100  { return THistogram::UseVectorBasedAlgorithm(); }
101 
102 protected:
104  ~MovingHistogramMorphologyImageFilter() override = default;
105  void PrintSelf(std::ostream & os, Indent indent) const override;
106 
108 // void ThreadedGenerateData (const OutputImageRegionType&
109 // outputRegionForThread,
110 // ThreadIdType threadId);
111 
114  void ConfigureHistogram(THistogram & histogram) override;
115 
117 }; // end of class
118 } // end namespace itk
119 
120 #ifndef ITK_MANUAL_INSTANTIATION
121 #include "itkMovingHistogramMorphologyImageFilter.hxx"
122 #endif
123 
124 #endif
typename TInputImage::SizeType RadiusType
typename std::map< OffsetType, OffsetListType, Functor::LexicographicCompare > OffsetMapType
typename TInputImage::IndexType IndexType
Implements a generic moving histogram algorithm.
typename TOutputImage::PixelType OutputPixelType
typename TInputImage::RegionType RegionType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename TInputImage::OffsetType OffsetType
typename KernelType::ConstIterator KernelIteratorType
typename OutputImageType::RegionType OutputImageRegionType
typename TInputImage::SizeType SizeType
TOutputImage OutputImageType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for MovingHistogramDilateImageFilter and MovingHistogramErodeImageFilter.