![]() |
Orfeo Toolbox
3.16
|
This boundary condition returns a constant value for out-of-bounds image pixels. More...
#include <itkConstantBoundaryCondition.h>
Inheritance diagram for itk::ConstantBoundaryCondition< TImage >:
Collaboration diagram for itk::ConstantBoundaryCondition< TImage >:Public Types | |
| typedef Superclass::IndexType | IndexType |
| typedef Superclass::NeighborhoodAccessorFunctorType | NeighborhoodAccessorFunctorType |
| typedef Superclass::NeighborhoodType | NeighborhoodType |
| typedef Superclass::OffsetType | OffsetType |
| typedef Superclass::PixelPointerType | PixelPointerType |
| typedef Superclass::PixelType | PixelType |
| typedef ConstantBoundaryCondition | Self |
| typedef ImageBoundaryCondition < TImage > | Superclass |
Public Member Functions | |
| ConstantBoundaryCondition () | |
| const PixelType & | GetConstant () const |
| virtual PixelType | operator() (const OffsetType &, const OffsetType &, const NeighborhoodType *) const |
| virtual PixelType | operator() (const OffsetType &, const OffsetType &, const NeighborhoodType *, const NeighborhoodAccessorFunctorType &) const |
| bool | RequiresCompleteNeighborhood () |
| void | SetConstant (const PixelType &c) |
Static Public Attributes | |
| static const unsigned int | ImageDimension = Superclass::ImageDimension |
Private Attributes | |
| PixelType | m_Constant |
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 60 of file itkConstantBoundaryCondition.h.
| typedef Superclass::IndexType itk::ConstantBoundaryCondition< TImage >::IndexType |
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 71 of file itkConstantBoundaryCondition.h.
| typedef Superclass::NeighborhoodAccessorFunctorType itk::ConstantBoundaryCondition< TImage >::NeighborhoodAccessorFunctorType |
Functor used to access pixels from a neighborhood of pixel pointers
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 76 of file itkConstantBoundaryCondition.h.
| typedef Superclass::NeighborhoodType itk::ConstantBoundaryCondition< TImage >::NeighborhoodType |
Type of the data container passed to this function object.
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 73 of file itkConstantBoundaryCondition.h.
| typedef Superclass::OffsetType itk::ConstantBoundaryCondition< TImage >::OffsetType |
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 72 of file itkConstantBoundaryCondition.h.
| typedef Superclass::PixelPointerType itk::ConstantBoundaryCondition< TImage >::PixelPointerType |
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 70 of file itkConstantBoundaryCondition.h.
| typedef Superclass::PixelType itk::ConstantBoundaryCondition< TImage >::PixelType |
Extract information from the image type
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 69 of file itkConstantBoundaryCondition.h.
| typedef ConstantBoundaryCondition itk::ConstantBoundaryCondition< TImage >::Self |
Self & superclass typedefs
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 65 of file itkConstantBoundaryCondition.h.
| typedef ImageBoundaryCondition<TImage> itk::ConstantBoundaryCondition< TImage >::Superclass |
Definition at line 66 of file itkConstantBoundaryCondition.h.
|
inline |
Default constructor.
Definition at line 82 of file itkConstantBoundaryCondition.h.
|
inline |
Get the value of the constant.
Definition at line 106 of file itkConstantBoundaryCondition.h.
Referenced by itk::GrayscaleErodeImageFilter< TInputImage, TOutputImage, TKernel >::OverrideBoundaryCondition(), and itk::GrayscaleDilateImageFilter< TInputImage, TOutputImage, TKernel >::OverrideBoundaryCondition().
|
inlinevirtual |
Computes and returns appropriate out-of-bounds values from neighborhood iterator data.
Implements itk::ImageBoundaryCondition< TImage >.
Definition at line 87 of file itkConstantBoundaryCondition.h.
|
inlinevirtual |
Computes and returns the appropriate pixel value from neighborhood iterator data, using the functor.
Implements itk::ImageBoundaryCondition< TImage >.
Definition at line 94 of file itkConstantBoundaryCondition.h.
|
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 112 of file itkConstantBoundaryCondition.h.
|
inline |
Set the value of the constant.
Definition at line 102 of file itkConstantBoundaryCondition.h.
Referenced by itk::BinaryMorphologyImageFilter< TInputImage, TOutputImage, TKernel >::AnalyzeKernel(), itk::BoxAccumulateFunction(), itk::BoxSquareAccumulateFunction(), itk::Statistics::ImageToCooccurrenceListAdaptor< TImage >::Compute(), itk::ShapeLabelMapFilter< TImage, TLabelImage >::ComputeFeretDiameter(), otb::RegionImageToRectangularPathListFilter< TInputImage, TOutputPath >::GenerateData(), itk::BinaryDilateImageFilter< TInputImage, TOutputImage, TKernel >::GenerateData(), itk::BinaryErodeImageFilter< TInputImage, TOutputImage, TKernel >::GenerateData(), itk::ReconstructionImageFilter< TInputImage, TOutputImage, TCompare >::GenerateData(), itk::ValuedRegionalExtremaImageFilter< TInputImage, TOutputImage, TFunction1, TFunction2 >::GenerateData(), itk::MorphologicalWatershedFromMarkersImageFilter< TInputImage, TLabelImage >::GenerateData(), itk::ConnectedComponentFunctorImageFilter< TInputImage, TOutputImage, TFunctor, TMaskImage >::GenerateData(), otb::Functor::ShapeAttributesLabelObjectFunctor< TLabelObject, TLabelImage >::operator()(), and otb::PixelSuppressionByDirectionImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData().
|
static |
Save the image dimension.
Reimplemented from itk::ImageBoundaryCondition< TImage >.
Definition at line 79 of file itkConstantBoundaryCondition.h.
|
private |
Definition at line 115 of file itkConstantBoundaryCondition.h.