Attached below is my implementation code & GUI written in Matlab, using Shai Bagon's C code (mex files) for the graph cut calculation part.
GUI
I prepared a nice & easy to use GUI (Figure 1) for anyone to:
1. Load an image.
2. Mark a polygon / load a rectangle image.
3. Set K & Beta parameters.
4. Run the Grab Cut & compare different parameters' results.
GUI
I prepared a nice & easy to use GUI (Figure 1) for anyone to:
1. Load an image.
2. Mark a polygon / load a rectangle image.
3. Set K & Beta parameters.
4. Run the Grab Cut & compare different parameters' results.
Figure 1 - The GUI
Download the code & open README_GrabCut for a simple explanation:
grabcut.zip | |
File Size: | 81 kb |
File Type: | zip |
Enjoy!