View License

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

» Watch video

Highlights from
Find neighbouring voxels

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

Be the first to rate this file! 0 Downloads (last 30 days) File Size: 1.58 KB File ID: #43861 Version: 1.1

Find neighbouring voxels

by

 

10 Oct 2013 (Updated )

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

| Watch this File

File Information
Description

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

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Updates
11 Oct 2013 1.1

just edited my comments

Contact us