Thursday, October 25, 2012

Matlab code for Negative Transformation


%Negative transformation

a=imread('cameraman.tif');
subplot(1,2,1);
imshow(a);
[m,n]=size(a);
for i=1:m-1
for j=1:n-1
s(i,j)=256-1-a(i,j);
end;
end;
subplot(1,2,2);
imshow(a);

3 comments:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in MATLAB, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on MATLAB. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    MaxMunus
    E-mail: nitesh@maxmunus.com
    Skype id: nitesh_maxmunus
    Ph:(+91) 8553912023
    http://www.maxmunus.com/




    ReplyDelete