|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkFlatStructuringElement_h
19 #define itkFlatStructuringElement_h
87 template <
unsigned int VDimension>
88 class ITK_TEMPLATE_EXPORT FlatStructuringElement :
public Neighborhood<bool, VDimension>
115 static constexpr
unsigned int NeighborhoodDimension = VDimension;
129 m_Decomposable =
false;
130 m_RadiusIsParametric =
false;
140 Box(RadiusType radius);
144 Ball(RadiusType radius,
bool radiusIsParametric =
false);
148 Cross(RadiusType radius);
152 Annulus(RadiusType radius,
unsigned int thickness = 1,
bool includeCenter =
false,
bool radiusIsParametric =
false);
160 Polygon(RadiusType radius,
unsigned int lines);
170 return m_Decomposable;
188 m_Lines.push_back(l);
193 CheckParallel(LType NewVec)
const;
200 ComputeBufferFromLines();
210 return m_RadiusIsParametric;
215 m_RadiusIsParametric = flag;
217 itkBooleanMacro(RadiusIsParametric);
223 FromImage(
const ImageType * image);
227 PrintSelf(std::ostream & os,
Indent indent)
const override;
230 bool m_Decomposable{};
234 template <
unsigned int VDimension3>
241 template <
typename TStructuringElement,
typename TRadius>
243 GeneratePolygon(TStructuringElement & res, TRadius radius,
unsigned int lines);
252 bool m_RadiusIsParametric{};
257 CheckImageSize(
const ImageType * image);
261 #ifndef ITK_MANUAL_INSTANTIATION
262 # include "itkFlatStructuringElement.hxx"
void SetDecomposable(bool v)
Represent a n-dimensional size (bounds) of a n-dimensional image.
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through oper...
A class to support a variety of flat structuring elements, including versions created by decompositio...
typename itk::Image< PixelType, VDimension > ImageType
std::vector< LType > DecompType
A templated class holding a n-Dimensional vector.
ImageBaseType::SizeType SizeType
Control indentation during Print() invocation.
void SetRadiusIsParametric(bool flag)
const DecompType & GetLines() const
typename AllocatorType::iterator Iterator
typename AllocatorType::const_iterator ConstIterator
Represent a n-dimensional offset between two n-dimensional indexes of n-dimensional image.
Vector< float, VDimension3 > P3
Compute the cross product of two vectors of dimension 3, independently of the type of the values of v...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Templated n-dimensional image class.
bool GetRadiusIsParametric() const
bool GetDecomposable() const