Efficient Graph based image segmentation
This is an implementation of [1]. The result is slightly different from website[1], because we apply adjacent neighborhood rather than K nearest neighborhood. The following is an example usage:
%complie:(only once)
GraphSeg_complie
%Read an image
img = imread('images\rice.jpg');
%segmentation
[L, contour] = graph_segment(img, 1, 3, 100);
%display result
subplot(2, 1, 1), imshow(img), title('original image'); subplot(2, 1, 2), imshow(label2rgb(L)),title('segmented result');
[1]Efficient Graph-Based Image Segmentation
Pedro F. Felzenszwalb and Daniel P. Huttenlocher
International Journal of Computer Vision, Volume 59, Number 2, September 2004
http://people.cs.uchicago.edu/~pff/segment/
Zitieren als
Su Dongcai (2025). Efficient Graph based image segmentation (https://www.mathworks.com/matlabcentral/fileexchange/29299-efficient-graph-based-image-segmentation), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Neighborhood and Block Processing >
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation > Color Segmentation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Graph_seg/
Graph_seg/CoherenceFilter/
Graph_seg/CoherenceFilter/functions/
Graph_seg/CoherenceFilter/functions2D/
Graph_seg/CoherenceFilter/functions3D/
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | supply compling m-file make it independent to the operating systems |
||
1.0.0.0 |