I applied multi threshold using Otsu and show the result of the process using this script. it runs well.
a=imread('segment.jpg');figure, imshow(a); b=imadjust(a, [0.8 1],[]);figure, imshow(b); level = multithresh(b);seg_I = imquantize(b,level);figure, imshow(seg_I, []);j=imcomplement(seg_I);figure, imshow(j,[]); title('image complement');
but, why I must enclose array bracket '[]' to show the image on next process after apply multithresh? please help, thanks ^^
Best Answer