]> AND Private Git Repository - these_gilles.git/blob - THESE/codes/graphe/Ncut_9/imread_ncut.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
modif finale lnivs + keywords
[these_gilles.git] / THESE / codes / graphe / Ncut_9 / imread_ncut.m
1 function I = imread_ncut(Image_file_name,nr,nc);
2 %  I = imread_ncut(Image_file_name);
3 %
4 % Timothee Cour, Stella Yu, Jianbo Shi, 2004.
5
6
7 %% read image 
8
9 I = imread(Image_file_name);
10 [Inr,Inc,nb] = size(I);
11
12 if (nb>1),
13     I =double(rgb2gray(I));
14 else
15     I = double(I);
16 end
17
18 I = imresize(I,[nr, nc],'bicubic');