18#ifndef itkConstantImagePointerBoundaryCondition_h
19#define itkConstantImagePointerBoundaryCondition_h
61template <
typename TImage>
133 typename TImage::RegionType imageRegion = image->GetLargestPossibleRegion();
134 if (imageRegion.IsInside(index))
136 return static_cast<PixelType>(image->GetPixel(index));
void SetConstant(const PixelType &c)
virtual PixelType operator()(const OffsetType &, const OffsetType &, const NeighborhoodType *) const
typename Superclass::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
static constexpr unsigned int ImageDimension
ConstantImagePointerBoundaryCondition()
PixelType GetPixel(const IndexType &index, const TImage *image) const
typename Superclass::OffsetType OffsetType
ImageBoundaryCondition< TImage > Superclass
ConstantImagePointerBoundaryCondition Self
typename Superclass::IndexType IndexType
typename Superclass::PixelPointerType PixelPointerType
typename Superclass::NeighborhoodType NeighborhoodType
virtual PixelType operator()(const OffsetType &, const OffsetType &, const NeighborhoodType *, const NeighborhoodAccessorFunctorType &) const
const PixelType & GetConstant() const
typename Superclass::PixelType PixelType
bool RequiresCompleteNeighborhood()
ImageBoundaryCondition()=default
Index< ImageDimension > IndexType
typename TImage::PixelType PixelType
typename TImage::NeighborhoodAccessorFunctorType NeighborhoodAccessorFunctorType
static constexpr unsigned int ImageDimension
typename TImage::InternalPixelType * PixelPointerType
Neighborhood< PixelPointerType, ImageDimension > NeighborhoodType
Offset< ImageDimension > OffsetType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....