ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkConstantBoundaryCondition.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 67 of file itkConstantBoundaryCondition.h.
Public Member Functions | |
ConstantBoundaryCondition () | |
const OutputPixelType & | GetConstant () const |
RegionType | GetInputRequestedRegion (const RegionType &inputLargestPossibleRegion, const RegionType &outputRequestedRegion) const override |
const char * | GetNameOfClass () const override |
OutputPixelType | GetPixel (const IndexType &index, const TInputImage *image) const override |
template<typename TPixel > | |
void | Initialize (const VariableLengthVector< TPixel > *) |
OutputPixelType | operator() (const OffsetType &, const OffsetType &, const NeighborhoodType *) const override |
OutputPixelType | operator() (const OffsetType &, const OffsetType &, const NeighborhoodType *, const NeighborhoodAccessorFunctorType &) const override |
void | Print (std::ostream &os, Indent i=0) const override |
bool | RequiresCompleteNeighborhood () override |
void | SetConstant (const OutputPixelType &c) |
Public Member Functions inherited from itk::ImageBoundaryCondition< TInputImage, TOutputImage > | |
virtual OutputPixelType | GetPixel (const IndexType &index, const TInputImage *image) const =0 |
ImageBoundaryCondition ()=default | |
virtual OutputPixelType | operator() (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data) const =0 |
virtual OutputPixelType | operator() (const OffsetType &point_index, const OffsetType &boundary_offset, const NeighborhoodType *data, const NeighborhoodAccessorFunctorType &neighborhoodAccessorFunctor) const =0 |
virtual | ~ImageBoundaryCondition ()=default |
virtual RegionType | GetInputRequestedRegion (const RegionType &inputLargestPossibleRegion, const RegionType &outputRequestedRegion) const |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = Superclass::ImageDimension |
Static Public Attributes inherited from itk::ImageBoundaryCondition< TInputImage, TOutputImage > | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Private Attributes | |
OutputPixelType | m_Constant |
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::IndexType = typename Superclass::IndexType |
Definition at line 80 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::NeighborhoodAccessorFunctorType = typename Superclass::NeighborhoodAccessorFunctorType |
Definition at line 85 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::NeighborhoodType = typename Superclass::NeighborhoodType |
Definition at line 83 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::OffsetType = typename Superclass::OffsetType |
Definition at line 82 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::OutputPixelType = typename Superclass::OutputPixelType |
Definition at line 78 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::PixelPointerType = typename Superclass::PixelPointerType |
Definition at line 77 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::PixelType = typename Superclass::PixelType |
Extract information from the image type
Definition at line 76 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::RegionType = typename Superclass::RegionType |
Definition at line 79 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::Self = ConstantBoundaryCondition |
Self & superclass type alias
Definition at line 72 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::SizeType = typename Superclass::SizeType |
Definition at line 81 of file itkConstantBoundaryCondition.h.
using itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::Superclass = ImageBoundaryCondition< TInputImage, TOutputImage > |
Definition at line 73 of file itkConstantBoundaryCondition.h.
itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::ConstantBoundaryCondition | ( | ) |
Default constructor.
const OutputPixelType& itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::GetConstant | ( | ) | const |
Get the value of the constant.
|
override |
Determines the necessary input region for the output region. For this boundary condition, only the intersection of the largest possible image region and the output requested region is needed.
inputLargestPossibleRegion | Largest possible region of the input image. |
outputRequestedRegion | The output requested region. |
|
inlineoverridevirtual |
Runtime information support.
Reimplemented from itk::ImageBoundaryCondition< TInputImage, TOutputImage >.
Definition at line 94 of file itkConstantBoundaryCondition.h.
|
override |
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 constant value is returned.
index | The index of the desired pixel. |
image | The image from which pixel values should be determined. |
void itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::Initialize | ( | const VariableLengthVector< TPixel > * | ) |
Special version of initialize for images with pixel type VariableLengthVector.
|
override |
Computes and returns appropriate out-of-bounds values from neighborhood iterator data.
|
override |
Computes and returns the appropriate pixel value from neighborhood iterator data, using the functor.
|
overridevirtual |
Utility for printing the boundary condition.
Reimplemented from itk::ImageBoundaryCondition< TInputImage, TOutputImage >.
|
inlineoverridevirtual |
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< TInputImage, TOutputImage >.
Definition at line 130 of file itkConstantBoundaryCondition.h.
void itk::ConstantBoundaryCondition< TInputImage, TOutputImage >::SetConstant | ( | const OutputPixelType & | c | ) |
Set the value of the constant.
Referenced by itk::BoxAccumulateFunction(), and itk::BoxSquareAccumulateFunction().
|
static |
Save the image dimension.
Definition at line 88 of file itkConstantBoundaryCondition.h.
|
private |
Definition at line 154 of file itkConstantBoundaryCondition.h.