File Exchange

image thumbnail

Find neighbouring voxels

version 1.1 (1.58 KB) by

Very simple function to find the 26 (or less) neighbouring indices of an voxel in a 3-D volume.

3 Downloads

Updated

View License

Very simple function to find the 26 (or less if near the borders) neighbouring indices of an voxel in a 3-D volume given it's index position, which can be useful for image processing. I thought this was a built in function in Matlab but it does not appear to be, so maybe this saves you some time.

Use the sub2ind function to get the index position of the i,j,k voxel

Comments and Ratings (0)

Updates

1.1

just edited my comments

MATLAB Release
MATLAB 8.0 (R2012b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video