This code is a self explanatory implementation of graph cut segmentation using normalized cuts on gray-scale images as described in Shi, Jianbo, and Jitendra Malik. "Normalized cuts and image segmentation." Pattern Analysis and Machine Intelligence, IEEE Transactions on 22.8 (2000): 888-905.
The code includes bi-partitioning as well as k-simultaneous partitioning. I've included comments to assist the user in understanding and manipulating the code.
sir if i run your code to a grayscale image iam getting error like this please help me Subscripted assignment dimension mismatch.
Error in graphcuts (line 218)
i wanted to do segement an grayscale image using normalised graphcut
sir please can you tell me how to give input my image to this code
I'm getting this error
Out of memory. Type HELP MEMORY for your options.
Error in graphcuts (line 41)
Like: simple, readable, short (~80 effective lines)
Dislike: inefficient (resize image first), not really sure if this is the result I want
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.