MATLAB Answers

complement of an image

18 views (last 30 days)
How to display an image like this:
Complement.png

  0 Comments

Sign in to comment.

Accepted Answer

Stephan
Stephan on 3 Dec 2019
Edited: Stephan on 3 Dec 2019
I = fliplr(imread('cameraman.tif'));
I1 = triu((I),1);
I2 = tril(imcomplement(I));
I_res = fliplr(I1+I2);
imshow(I_res)
BTW: Did you notice that you can accept and/or vote for useful answers?

  1 Comment

Sadeq Ebrahimi
Sadeq Ebrahimi on 3 Dec 2019
Thank you very much, I've been stuck with this problem for weeks

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by