18 #ifndef itkConstantBoundaryCondition_h
19 #define itkConstantBoundaryCondition_h
66 template<
typename TInputImage,
typename TOutputImage = TInputImage >
89 itkStaticConstMacro(ImageDimension,
unsigned int, Superclass::ImageDimension);
97 return "itkConstantBoundaryCondition";
101 virtual void Print( std::ostream & os,
Indent i = 0 )
const;
105 template <
typename TPixel >
110 virtual OutputPixelType operator()(
const OffsetType &,
112 const NeighborhoodType *)
const;
116 virtual OutputPixelType operator()(
119 const NeighborhoodType *,
120 const NeighborhoodAccessorFunctorType &)
const;
123 void SetConstant(
const OutputPixelType & c);
126 const OutputPixelType & GetConstant()
const;
142 virtual RegionType GetInputRequestedRegion(
const RegionType & inputLargestPossibleRegion,
143 const RegionType & outputRequestedRegion )
const;
152 OutputPixelType GetPixel(
const IndexType & index,
const TInputImage * image )
const;
159 #ifndef ITK_MANUAL_INSTANTIATION
160 #include "itkConstantBoundaryCondition.hxx"
Represent the offset between two n-dimensional indexes in a n-dimensional image.
Superclass::IndexType IndexType
Superclass::PixelType PixelType
virtual const char * GetNameOfClass() const
A light-weight container object for storing an N-dimensional neighborhood of values.
Superclass::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
Superclass::SizeType SizeType
This boundary condition returns a constant value for out-of-bounds image pixels.
An image region represents a structured region of data.
InputImageType::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
Superclass::RegionType RegionType
InputImageType::PixelType PixelType
Represents an array whose length can be defined at run-time.
ImageBoundaryCondition< TInputImage, TOutputImage > Superclass
Superclass::PixelPointerType PixelPointerType
OutputPixelType m_Constant
A virtual base object that defines an interface to a class of boundary condition objects for use by n...
Superclass::OutputPixelType OutputPixelType
Superclass::NeighborhoodType NeighborhoodType
bool RequiresCompleteNeighborhood()
ConstantBoundaryCondition Self
InputImageType::InternalPixelType * PixelPointerType
Control indentation during Print() invocation.
InputImageType::PixelType OutputPixelType
Superclass::OffsetType OffsetType
ImageBaseType::IndexType IndexType