MATLAB Answers

complement of an image

17 views (last 30 days)
How to display an image like this:


Sign in to comment.

Accepted Answer

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);
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.