18 #ifndef itkConstantBoundaryCondition_h
19 #define itkConstantBoundaryCondition_h
66 template<
typename TInputImage,
typename TOutputImage = TInputImage >
88 static constexpr
unsigned int ImageDimension = Superclass::ImageDimension;
96 return "itkConstantBoundaryCondition";
100 void Print( std::ostream & os,
Indent i = 0 )
const override;
104 template <
typename TPixel >
109 OutputPixelType operator()(
const OffsetType &,
111 const NeighborhoodType *)
const override;
115 OutputPixelType operator()(
118 const NeighborhoodType *,
119 const NeighborhoodAccessorFunctorType &)
const override;
122 void SetConstant(
const OutputPixelType & c);
125 const OutputPixelType & GetConstant()
const;
142 const RegionType & outputRequestedRegion )
const override;
151 OutputPixelType GetPixel(
const IndexType & index,
const TInputImage * image )
const override;
158 #ifndef ITK_MANUAL_INSTANTIATION
159 #include "itkConstantBoundaryCondition.hxx"
typename Superclass::PixelType PixelType
typename Superclass::SizeType SizeType
A light-weight container object for storing an N-dimensional neighborhood of values.
bool RequiresCompleteNeighborhood() override
This boundary condition returns a constant value for out-of-bounds image pixels.
typename Superclass::RegionType RegionType
typename Superclass::NeighborhoodType NeighborhoodType
Represents an array whose length can be defined at run-time.
ImageBaseType::SizeType SizeType
const char * GetNameOfClass() const override
ImageBaseType::IndexType IndexType
typename InputImageType::PixelType OutputPixelType
typename Superclass::PixelPointerType PixelPointerType
typename Superclass::IndexType IndexType
OutputPixelType m_Constant
typename Superclass::OutputPixelType OutputPixelType
typename InputImageType::PixelType PixelType
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
typename InputImageType::InternalPixelType * PixelPointerType
typename Superclass::OffsetType OffsetType
Control indentation during Print() invocation.
typename Superclass::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
ImageBaseType::RegionType RegionType
typename InputImageType::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType