Skip to content

Instantly share code, notes, and snippets.

@juniorhero
Created August 26, 2016 20:22
Show Gist options
  • Save juniorhero/175ea303a523020489af044d048a957c to your computer and use it in GitHub Desktop.
Save juniorhero/175ea303a523020489af044d048a957c to your computer and use it in GitHub Desktop.
matlab negative of image
a=imread('Koala.jpg');
b=255-a
subplot(1,2,1)
imshow(a)
title 'Original Image'
subplot(1,2,2)
imshow(b)
title 'Negative Image'
@juniorhero
Copy link
Author

output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment