18#ifndef itkConstantBoundaryCondition_h
19#define itkConstantBoundaryCondition_h
27template <
typename TValue>
67template <
typename TInputImage,
typename TOutputImage = TInputImage>
91 static constexpr unsigned int ImageDimension = Superclass::ImageDimension;
102 template <
typename TPixel>
147 const RegionType & outputRequestedRegion)
const override;
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "itkConstantBoundaryCondition.hxx"
This boundary condition returns a constant value for out-of-bounds image pixels.
bool RequiresCompleteNeighborhood() override
ConstantBoundaryCondition()=default
const OutputPixelType & GetConstant() const
RegionType GetInputRequestedRegion(const RegionType &inputLargestPossibleRegion, const RegionType &outputRequestedRegion) const override
void SetConstant(const OutputPixelType &c)
OutputPixelType operator()(const OffsetType &, const OffsetType &, const NeighborhoodType *, const NeighborhoodAccessorFunctorType &) const override
OutputPixelType operator()(const OffsetType &, const OffsetType &, const NeighborhoodType *) const override
void Initialize(const VariableLengthVector< TPixel > *)
OutputPixelType GetPixel(const IndexType &index, const TInputImage *image) const override
void Print(std::ostream &os, Indent i=0) const override
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
typename TInputImage::PixelType PixelType
typename TInputImage::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
typename TInputImage::InternalPixelType * PixelPointerType
typename TOutputImage::PixelType OutputPixelType
An image region represents a structured region of data.
Control indentation during Print() invocation.
A light-weight container object for storing an N-dimensional neighborhood of values.
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Represent a n-dimensional index in a n-dimensional image.