matrixfillborder

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-13, Last change: 2025-09-14

fills a matrix similiar as matrixdistanceofCPL but with discrete values



See Also: GPLofmatrix , matrixdistanceofCPL , ELofmatrixneigbors , ELofmatrixneigborweight , matrixlocalminmax , matrixskeleton , matrixfilldistance

Example Illustration

 missing image of matrixfillborder(M,neighb)

Syntax

MM=matrixfillborder(M,[neighb])

Input Parameter

M: Matrix with nan as untouchable regions
neighb: '8' oder '4' as neighborhood; default is '8'

Output Parameter

MM: Matrix with discrete distance values

Examples


[M,GPL,~,ax]=matrixdistanceofCPL(CPLsample(29),100);
SGfigure; matrixplot(M); colorbar;
matrixfillborder(M);




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21