Calcul nombre de pixel blanc dans une image

Fermé
alibi foued - 26 avril 2014 à 14:45
Bonjour,
pix=zeros(1,nb);
for i=1:nb-1
image2=['blanc',int2str(i),'.','jpg'];
imread('image2.jpg');
pix(1,i)=mean(mean(image2));
end


la fonction 'mean' ne calcule pas !! merci pour m'aider