File Exchange

image thumbnail


version 1.0.0 (9.6 KB) by Rik
Region growing algorithm (supports 2D, 3D, and ND)


Updated 06 Oct 2019

View License

This function implements a region growing algorithm for 2D, 3D and ND. In short this means that this function looks at all the pixels/voxels surrounding the segmented region and adds those that have a value that are within maxDiff of the mean of the already selected region. The region starts out with the seed position, and the loop continues until no more voxels are added. This function tests the entire shell at once.

This is slower than a mex implementation would be, but this should be compatible with any release and will return the same result on any release (including GNU Octave).

A function with several examples is included. A tester function is also included. No toolbox is required to use this function.

Licence: CC by-nc-sa 4.0

Cite As

Rik (2020). RegGrow (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2019b
Compatible with R13SP1 to any release
Platform Compatibility
Windows macOS Linux