?? rgcompress.m
字號(hào):
%Question No:6
%RANGE COMPRESSION
function rgcompress(x)
%Range compression
f=imread(x);
f=im2double(f);
c=input('Enter the constant value, c = ');
[M,N]=size(f);
for x = 1:M
for y = 1:N
g(x,y)=c*log10(1+abs(f(x,y)));
end
end
imshow(f), figure, imshow(g);
end
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -