18#ifndef itkNeighborhoodOperator_h
19#define itkNeighborhoodOperator_h
71template <
typename TPixel,
unsigned int VDimension,
typename TAllocator = NeighborhoodAllocator<TPixel>>
96 if (direction >= VDimension)
98 itkExceptionMacro(<<
" Can not set direction " << direction <<
" greater than dimensionality of neighborhood "
101 m_Direction = direction;
141 Superclass::PrintSelf(os, indent);
143 os << indent <<
"Direction: " << m_Direction << std::endl;
177 for (
unsigned int i = 0; i < this->
Size(); ++i)
186 unsigned long m_Direction{ 0 };
190#ifndef ITK_MANUAL_INSTANTIATION
191# include "itkNeighborhoodOperator.hxx"
Control indentation during Print() invocation.
Virtual class that defines a common interface to all neighborhood operator subtypes.
void SetDirection(const unsigned long direction)
virtual void FillCenteredDirectional(const CoefficientVector &)
virtual CoefficientVector GenerateCoefficients()=0
unsigned long GetDirection() const
typename NumericTraits< TPixel >::RealType PixelRealType
virtual void Fill(const CoefficientVector &)=0
void ScaleCoefficients(PixelRealType)
typename std::vector< PixelRealType > CoefficientVector
virtual void CreateDirectional()
virtual void CreateToRadius(const SizeType &)
void PrintSelf(std::ostream &os, Indent indent) const override
A light-weight container object for storing an N-dimensional neighborhood of values.
typename SizeType::SizeValueType SizeValueType
A flexible iterator for itk containers(i.e. itk::Neighborhood) that support pixel access through oper...
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....