ITK  4.9.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 > >
64  public Neighborhood< TPixel, VDimension, TAllocator >
65 {
66 public:
70 
72  typedef TAllocator AllocatorType;
73 
75  itkStaticConstMacro(NeighborhoodDimension, unsigned int, VDimension);
76 
78  typedef TPixel PixelType;
79 
83  typedef typename AllocatorType::iterator Iterator;
84  typedef typename AllocatorType::const_iterator ConstIterator;
85 
87  typedef typename Superclass::SizeType SizeType;
89 
92 
95 
98 
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 
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
typedef::itk::Size< VDimension > RadiusType
Neighborhood< TPixel, VDimension, TAllocator > Superclass
A light-weight container object for storing an N-dimensional neighborhood of values.
Self & operator=(const Self &other)
SliceIterator< TPixel, Self > SliceIteratorType
typedef::itk::Size< VDimension > SizeType
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...
SizeType::SizeValueType SizeValueType