Computes the shortest distance between each region and its nearest neighbor in a Boolean input image. Also returns the pair of closest (x,y)-points for each pair of nearest-neighbor regions.
Paul Fricker (2020). getNearestNeighborDistances.m (https://www.mathworks.com/matlabcentral/fileexchange/47964-getnearestneighbordistances-m), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!