#include <itkConstantImagePointerBoundaryCondition.h>
This boundary condition returns a constant value for out-of-bounds image pixels.
For example, invoking this function object with a constant value of zero (the default) on each out-of-bounds element of a 7x5 iterator that masks a region at an image corner (iterator is centered on the 2):
* * * * * * *
* * * * * * *
* * 1 2 3 4 5 (where * denotes pixels that lie
* * 3 3 5 5 6 outside of the image boundary)
* * 4 4 6 7 8
would produce the following neighborhood of values:
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 1 2 3 4 5
0 0 3 3 5 5 6
0 0 4 4 6 7 8
Definition at line 62 of file itkConstantImagePointerBoundaryCondition.h.
Inheritance diagram for itk::ConstantImagePointerBoundaryCondition< TImage >:
Collaboration diagram for itk::ConstantImagePointerBoundaryCondition< TImage >:Public Types | |
| using | IndexType = typename Superclass::IndexType |
| using | NeighborhoodAccessorFunctorType = typename Superclass::NeighborhoodAccessorFunctorType |
| using | NeighborhoodType = typename Superclass::NeighborhoodType |
| using | OffsetType = typename Superclass::OffsetType |
| using | PixelPointerType = typename Superclass::PixelPointerType |
| using | PixelType = typename Superclass::PixelType |
| using | Self = ConstantImagePointerBoundaryCondition |
| using | Superclass = ImageBoundaryCondition<TImage> |
Public Types inherited from itk::ImageBoundaryCondition< TImage > | |
| using | IndexType |
| using | InputImageType |
| using | NeighborhoodAccessorFunctorType |
| using | NeighborhoodType |
| using | OffsetType |
| using | OutputImageType |
| using | OutputPixelType |
| using | PixelPointerType |
| using | PixelType |
| using | RegionType |
| using | Self |
| using | SizeType |
Static Public Attributes | |
| static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::ImageBoundaryCondition< TImage > | |
| static constexpr unsigned int | ImageDimension |
| static constexpr unsigned int | ImageDimension |
Private Attributes | |
| PixelType | m_Constant |
| using itk::ConstantImagePointerBoundaryCondition< TImage >::IndexType = typename Superclass::IndexType |
Definition at line 72 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::NeighborhoodAccessorFunctorType = typename Superclass::NeighborhoodAccessorFunctorType |
Definition at line 76 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::NeighborhoodType = typename Superclass::NeighborhoodType |
Definition at line 74 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::OffsetType = typename Superclass::OffsetType |
Definition at line 73 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::PixelPointerType = typename Superclass::PixelPointerType |
Definition at line 71 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::PixelType = typename Superclass::PixelType |
Extract information from the image type
Definition at line 70 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::Self = ConstantImagePointerBoundaryCondition |
Self & superclass type alias
Definition at line 66 of file itkConstantImagePointerBoundaryCondition.h.
| using itk::ConstantImagePointerBoundaryCondition< TImage >::Superclass = ImageBoundaryCondition<TImage> |
Definition at line 67 of file itkConstantImagePointerBoundaryCondition.h.
|
inline |
Default constructor.
Definition at line 82 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
inline |
Get the value of the constant.
Definition at line 116 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
inlinevirtual |
Returns a value for a given pixel at an index. If the index is inside the bounds of the input image, then the pixel value is obtained from the input image. Otherwise, the pixel value is determined according to the boundary condition type.
| index | The index of the desired pixel. |
| image | The image from which pixel values should be determined. |
Implements itk::ImageBoundaryCondition< TImage >.
Definition at line 131 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
inlinevirtual |
Computes and returns appropriate out-of-bounds values from neighborhood iterator data.
Implements itk::ImageBoundaryCondition< TImage >.
Definition at line 91 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
inlinevirtual |
Computes and returns the appropriate pixel value from neighborhood iterator data, using the functor.
Implements itk::ImageBoundaryCondition< TImage >.
Definition at line 99 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
inlinevirtual |
Tell if the boundary condition can index to any location within the associated iterator's neighborhood or if it has some limited subset (such as none) that it relies upon.
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 125 of file itkConstantImagePointerBoundaryCondition.h.
|
inline |
Set the value of the constant.
Definition at line 109 of file itkConstantImagePointerBoundaryCondition.h.
References m_Constant.
|
staticconstexpr |
Save the image dimension.
Definition at line 79 of file itkConstantImagePointerBoundaryCondition.h.
|
private |
Definition at line 143 of file itkConstantImagePointerBoundaryCondition.h.
Referenced by ConstantImagePointerBoundaryCondition(), GetConstant(), GetPixel(), operator()(), operator()(), and SetConstant().