You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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
Cite As
Amarjot (2026). Graph Cut for image Segmentation (https://www.mathworks.com/matlabcentral/fileexchange/40669-graph-cut-for-image-segmentation), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (1.77 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
