Skip to content

Instantly share code, notes, and snippets.

@krishnan793
Created December 18, 2014 16:38
Show Gist options
  • Save krishnan793/018e85fde1000601f5a5 to your computer and use it in GitHub Desktop.
Save krishnan793/018e85fde1000601f5a5 to your computer and use it in GitHub Desktop.
Power law transformation of an image.
%% Power-Law Transformation
% Equation s=cr^a
A=imread('401566.jpg');
A=rgb2gray(A);
c=1;
a=2.2;
imshow(uint8(c*(double(A).^a)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment