Graph Cut for image Segmentation
Version 1.1.0.0 (1,77 KB) von
Amarjot
The code segments the grayscale image using graph cuts.
Running the Code:
% Maximum Image size 128 by 128
I=imread('Lenna.jpg');
pad=3;
MAXVAL=255;
[Ncut] = graphcuts(I,pad,MAXVAL)
% function [Ncut] = graphcuts(I)
% Input: I image
% pad: spatial connectivity; eg. 3
% MAXVAL: maximum image value
% Output: Ncut: Binary map 0 or 1 corresponding to image segmentation
Zitieren als
Amarjot (2026). Graph Cut for image Segmentation (https://de.mathworks.com/matlabcentral/fileexchange/40669-graph-cut-for-image-segmentation), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2008a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Image Segmentation >
Mehr zu Image Segmentation finden Sie in Help Center und MATLAB Answers
Tags
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.0 | I added the maximum image size for which the code runs without error. |
||
| 1.0.0.0 |
