graphcuts.m

Not getting the desired output

You are now following this Submission

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 (2026). graphcuts.m (https://se.mathworks.com/matlabcentral/fileexchange/46862-graphcuts-m), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Convert Image Type in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0