getNearestNeighborD​istances.m

Compute nearest-neighbor distances for the regions in a Boolean image.
265 Downloads
Updated 1 Sep 2016

View License

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.

Cite As

Paul Fricker (2026). getNearestNeighborDistances.m (https://www.mathworks.com/matlabcentral/fileexchange/47964-getnearestneighbordistances-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.1

Updated license

1.0.0.0