Code covered by the BSD License  

Highlights from
load image

load image

by

 

Load Name Number

charger_img (n)
function img = charger_img (n)

%charger le repertoire correct, penser a un pendrive
if (n<10)
  ns=['0000' int2str(n)];
  elseif (n<100)
  ns=['000' int2str(n)];
  elseif (n<1000)
  ns=['00' int2str(n)];
  elseif (n<10000)
  ns=['0' int2str(n)];
  elseif (n<100000)
  ns=int2str(n);
end
  

img = imread (['images\img_' ns '.bmp']); 

% imshow (img) % voyant elever ca apres




end;

Contact us