I am using the code provided in this link:
http://www.mathworks.com/matlabcentral/fileexchange/40669-graph-cut-for-image-segmentation
The code:
I am getting an error:
Firstly, I am getting an error:
??? Input argument "I" is undefined.
Error in ==> graphcuts at 7
I = double(I); [H,W] = size(I);
------
Also, I am getting the same graph cut for ever image. Please help me out.
Thanks.
I have resized the image first to 1/8 since the it was taking too long. Please, explain me what to do?
Cite As
matlabuser1 (2026). graphcuts.m (https://www.mathworks.com/matlabcentral/fileexchange/46862-graphcuts-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Convert Image Type >
Find more on Convert Image Type in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
