GrowCut Image Segmentation
by Shawn Lankton
06 Mar 2008
(Updated 17 Jul 2008)
No BSD License
GrowCut Image Segmentation for binary segmentation, implemented in Matlab/C++ with mex
Download Now
|
Watch this File
|
| File Information |
| Description |
I came across a cute segmentation idea called "GrowCut" [http://graphics.cs.msu.su/en/publications/text/gc2005vk.pdf]. This paper by Vladimir Vezhnevets and Vadim Konouchine presents a very simple idea that has very nice results. I always feel that the simplest ideas are the best!
::Algorithm::
This algorithm is presented as an alternative to graph-cuts. The operation is very simple, and can be thought of with a biological metaphor: Imagine each image pixel is a "cell" of a certain type. These cells can be foreground, background, undefined, or others. As the algorithm proceeds, these cells compete to dominate the image domain. The ability of the cells to spread is related to the image pixel intensity.
The authors give some pseudocode that very concisely describes the algorithm.
<code>
//for every cell p
for all p in image
//copy previous state
labels_new = labels;
strength_new = strength;
// all neighbors q of p attack
for all q neighbors
if(attack_force*strength(q)>strength_new(p))
labels_new(p) = labels(q)
strength(p) = strength_new(q)
end if
end for
end for
</code>
See more and some experiments here:
http://www.shawnlankton.com/2008/03/growcut-segmentation-in-matlab/ |
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.4 (R2007a)
|
| Zip File Content |
|
| Other Files |
growcut/growcut.m, growcut/growcut_test.m, growcut/growcutmex.cpp, growcut/growcutmex.mexglx, growcut/growcutmex.mexmaci, growcut/growcutmex.mexw32, growcut/labels.png, growcut/lotus.png
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 31 Mar 2008 |
priyanka desai
|
|
|
| 14 Apr 2008 |
James Malcolm
|
|
|
| Updates |
| 14 Mar 2008 |
Fixed typo, added screenshot |
| 10 Apr 2008 |
fixed typos, added new keywords |
| 17 Jul 2008 |
Fixed a bug pointed out by Lin (Thanks!)
Fixed compatibility on some systems |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com