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 (2024). graphcuts.m (https://www.mathworks.com/matlabcentral/fileexchange/46862-graphcuts-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Convert Image Type >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |