|
|
| logarithmic.m |
clc; clear all; close all;
f=imread('scene.jpg');
g=rgb2gray(f);
c=input('Enter the constant value, c = ');
[M,N]=size(g);
for x = 1:M
for y = 1:N
m=double(g(x,y));
z(x,y)=c.*log10(1+m); %#ok<AGROW>
end
end
imshow(f), figure, imshow(z);
|
|
Contact us at files@mathworks.com