function res = addition( I, J )
    [m1, n1, can] = size(I);      %m=nb lignes, n=nb colonnes, can=nb canaux
        if(can > 1)
            I = rgb2gray(I);          %dans le cas d'une image couleur, la transformer en NG
        end
    [m2, n2, can] = size(J);      %m=nb lignes, n=nb colonnes, can=nb canaux
        if(can > 1)
            J = rgb2gray(J);          %dans le cas d'une image couleur, la transformer en NG
        end

    m=min(m1, m2);
    n=min(n1, n2);

    for i=1:m
        for j=1:n
            res(i, j) = I(i, j)+J(i, j);
        end
    end
    res=binarise(res, 0);
end