graphcuts.m

Not getting the desired output
329 Downloads
Updated 5 Jun 2014

View License

I am using the code provided in this link:
http://www.mathworks.com/matlabcentral/fileexchange/40669-graph-cut-for-image-segmentation

The code:

http://www.mathworks.com/matlabcentral/fileexchange/40669-graph-cut-for-image-segmentation/content/graphcuts.m

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
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Convert Image Type in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0