complement of an image

9 次查看(过去 30 天)
How to display an image like this:
Complement.png

采纳的回答

Stephan
Stephan 2019-12-3
编辑:Stephan 2019-12-3
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 个评论
Sadeq Ebrahimi
Sadeq Ebrahimi 2019-12-3
Thank you very much, I've been stuck with this problem for weeks

请先登录,再进行评论。

更多回答(1 个)

Sushmita Dey
Sushmita Dey 2020-4-3
I=imread('https://picload.files.wordpress.com/2014/02/blissful-nature-rain-n-flower.jpg');
J=imcomplement(I);
imshow(I,J,'montage')
title('complement of image')

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by