Skip to content

Instantly share code, notes, and snippets.

@krishnan793
Last active August 29, 2015 14:11
Show Gist options
  • Save krishnan793/7c18a21fdbec365c7f75 to your computer and use it in GitHub Desktop.
Save krishnan793/7c18a21fdbec365c7f75 to your computer and use it in GitHub Desktop.
Linear Transformation or Negative of an Image
A=imread('401566.jpg'); %Change 401566.jpg with your image file
A=rgb2gray(A);
imshow(255-A); %(L-1)-r;L=256(8 bit gray scale)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment