ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBinaryBallStructuringElement.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 itkBinaryBallStructuringElement_h
19 #define itkBinaryBallStructuringElement_h
20 
21 #include "itkNeighborhood.h"
22 
23 namespace itk
24 {
61 template< typename TPixel, unsigned int VDimension = 2,
62  typename TAllocator = NeighborhoodAllocator< TPixel > >
63 class ITK_TEMPLATE_EXPORT BinaryBallStructuringElement:
64  public Neighborhood< TPixel, VDimension, TAllocator >
65 {
66 public:
70 
72  using AllocatorType = TAllocator;
73 
75  static constexpr unsigned int NeighborhoodDimension = VDimension;
76 
78  using PixelType = TPixel;
79 
83  using Iterator = typename AllocatorType::iterator;
84  using ConstIterator = typename AllocatorType::const_iterator;
85 
87  using SizeType = typename Superclass::SizeType;
89 
92 
95 
97  BinaryBallStructuringElement() = default;
98 
100  ~BinaryBallStructuringElement() override = default;
101 
104  Neighborhood< TPixel, VDimension, TAllocator >(other)
105  {}
106 
108  Self & operator=(const Self & other)
109  {
110  Superclass::operator=(other);
111  return *this;
112  }
114 
116  void CreateStructuringElement();
117 
118 protected:
119 
120 private:
121 };
122 } // namespace itk
123 
124 #ifndef ITK_MANUAL_INSTANTIATION
125 #include "itkBinaryBallStructuringElement.hxx"
126 #endif
127 
128 #endif
typename SizeType::SizeValueType SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
A light-weight container object for storing an N-dimensional neighborhood of values.
typename AllocatorType::iterator Iterator
typename AllocatorType::const_iterator ConstIterator
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:68
A Neighborhood that represents a ball structuring element (ellipsoid) with binary elements...
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through oper...
TAllocator AllocatorType