function [min, max] = valeur( v, T )
    [cpt, n] = size(T);
    max=255;
    min=0;
    for i=1:cpt
        if (T(1, i)> v) && (T(1, i) < max)
            {max = T(1, i);}
        if (T(1, i)< v) && (T(1, i) > min)
            min = T(1, i);
    end
end

