findNeighbours

版本 2.0.2 (2.3 KB) 作者: Ahmed Zankoor
Finds the valid 4 or 8/ 6,18 or 26 neighbors indices of a specific index (i.e. pixel/voxel) in a 2D/3D matrix.
176.0 次下载
更新时间 2018/9/10

查看许可证

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.

引用格式

Ahmed Zankoor (2024). findNeighbours (https://www.mathworks.com/matlabcentral/fileexchange/68549-findneighbours), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
2.0.2

Added getting neighbors to pixels (elements) in a 2D image (matrix).

2.0.1

Thanks to Patrick Granton

2.0.0