i'm running your matlab code, when i run it on MATLAB R2011 i get the following error:
Error using .*
Integers can only be combined with integers of the same class, or scalar doubles.
Error in RemovePseudoContour (line 7)
Lmin = ordfilt2(L+bwbound.*(LABELNUM+1),1,ones(3,3)); %3-by-3 minimum filter
Error in test (line 81)
L1 = RemovePseudoContour(L1);
kindly tell me where the problem is, i'm also working on the same kind of problem, kindly get me out of it :(
When I run the matlab code with my .jpg image nothing happens. I tried "imshow(mask)" but I only get a white image. What am I doing wrong ? Is there something to add to the code to get an image output with the result of the segmentation on my image ?