function y = imlogtran(x) c = 255/log(256); y = uint8(c*log(1+double(x)));