1 function I = imread_ncut(Image_file_name,nr,nc);
2 % I = imread_ncut(Image_file_name);
4 % Timothee Cour, Stella Yu, Jianbo Shi, 2004.
9 I = imread(Image_file_name);
10 [Inr,Inc,nb] = size(I);
13 I =double(rgb2gray(I));
18 I = imresize(I,[nr, nc],'bicubic');