Solution question 1

function [ Nombre] = JeCompteEnVert( Image, Taille )
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

NbVert = 0;
Seuil = 10;
[Xnb,Ynb] =  size(Image);

for lig = 1 : Xnb
    for col = 1 : Ynb
        if (Image(lig,col) > Seuil)
            NbVert = NbVert+1;
            ImBleu(lig,col) = 255;
        end
    end
end
Nombre = round(NbVert/Taille);

end