Active contour
Version 1.0.0 (3.01 KB) by
Shaimaa Omer
Method in computer vision for delineating an object outline from a 2D image.
Also called a snake is technique for detecting and segmenting objects using deformable curves which will match the objects. It relies on a deformable model controlled by an energy minimization function. This energy depends on the image and also on the parameter we want to give to our deformable contour.
Code inputs:
- Insert an input image name example: square.jpg
- Get input from user if 1 let user determine initial contour points else initialize it as a circle
- If the initial contour is a circle, it would be placed at the center of the image with a radius equal to 45% of the minimum image dimension
- Get input from user if 1 do beta relaxation
Cite As
Shaimaa Omer (2025). Active contour (https://www.mathworks.com/matlabcentral/fileexchange/134886-active-contour), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |