MATLAB: Complement of an image

complementdispaly imageim2bwimageimage processingimcomplementloopproject

How to display an image like this:
Complement.png

Best Answer

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?