complement of an image

3 ビュー (過去 30 日間)
Sadeq Ebrahimi
Sadeq Ebrahimi 2019 年 12 月 3 日
回答済み: Sushmita Dey 2020 年 4 月 3 日
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