A simple image segmentation method. The segmented region grows from a
seed point by comparing neighbor pixels/voxels.
If a neighbor pixel/voxel is smaller then the specified threshold value it becomes a
part of the region.
The growing algorithm is written in C because the matlab implementations are rather
slow especially for big images or volumes.
Adrian Becker (2024). Region Growing (2D/3D) in C (https://www.mathworks.com/matlabcentral/fileexchange/63317-region-growing-2d-3d-in-c), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Region Growing (2D/3D grayscale)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Changed the data type of the dimension Vector from int to mwSize to prevent errors on x64 machines
Redesigned as a class with an interactive segmentation GUI in case of a 2D input image
Added input parameter for maximum euclidean distance to the seed point