findNeighbours
This function is a correction and modification to findNeighbours function by Patrick Granton.
It gives the indices of valid neighbors to a pixel/voxel in a 2D/3D matrix.
Given the linear index of the pixel/voxel, the size of the 2D/3D matrix and the type of connectivity considered
(4 or 8 / 6,18 or 26 connectivity), the function gives the linear indices of the neighboring pixels/voxels within the matrix size.
Citar como
Ahmed Zankoor (2026). findNeighbours (https://es.mathworks.com/matlabcentral/fileexchange/68549-findneighbours), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- AI and Statistics > Statistics and Machine Learning Toolbox > Cluster Analysis and Anomaly Detection > Nearest Neighbors >
Etiquetas
Agradecimientos
Inspiración para: bwgraph: Graph of connected pixels in images and volumes
Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.