function res=amincissementF(I, filtre)
    [m, n] = size(I);
    res=I;
    for i=2:m-1
        for j=2:n-1
            if(I(i, j)>0)
                res(i, j)=comparaison(I(i-1:i+1,j-1:j+1),filtre);
            end
        end
    end;
end