Region Growing (2D/3D) in C

C implementation of a basic region growing algorithm for images and volumes
Updated 2 Dec 2017

View License

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.

Cite As

Adrian Becker (2024). Region Growing (2D/3D) in C (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows 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!


Version Published Release Notes

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