DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

Boundary conditions

Neighbourhood operations pose a problem. What happens when the neighbourhood operator operates near the border of the image and needs data from the area outside the image? The usual solution, also adopted by DIPlib, is to silently extend the image. There are various ways of extending the boundary. Below is a list of the possible methods. More details can be found in the user guide. Note that not all functions support all of these.

NameDescription
DIP_BC_SYM_MIRRORSymmetric mirroring
DIP_BC_ASYM_MIRRORAsymmetric mirroring
DIP_BC_PERIODICPeriodic copying
DIP_BC_ASYM_PERIODICAsymmetric periodic copying
DIP_BC_ADD_ZEROSExtending the image with zeros
DIP_BC_ADD_MAX_VALUEExtending the image with +infinity
DIP_BC_ADD_MIN_VALUEExtending the image with -infinity

SEE ALSO

BoundaryArrayNew, BoundaryArrayFree

FillBoundaryArray, SeparableFrameWork