图像的日志转换定义为
s=T(r) = c*log(r+1)
哪里
s is the output image
r is the input image
c = 255/log(1+Maximum pixel value from the input image).
如果“输入图像的最大像素值”为255,则C值将为
105.886458025=255/log(256)
这没有道理。105.89是一个很高的强度值。与此C值相乘将产生一个非常明亮的图像。使用matlab中的“轮胎”图像,我得到了下面的输出:
I=imread('tire.tif');
I2=im2double(