Skip to content

Instantly share code, notes, and snippets.

@krishnan793
Created December 18, 2014 16:36
Show Gist options
  • Save krishnan793/83303296d9a6709818ae to your computer and use it in GitHub Desktop.
Save krishnan793/83303296d9a6709818ae to your computer and use it in GitHub Desktop.
Log transformation of an image.
%% Log Transform
% Equation s=c*log(1+r)
A=imread('401566.jpg');
A=rgb2gray(A);
imshow(log(double(A)+1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment