complement of an image

9 Ansichten (letzte 30 Tage)
Sadeq Ebrahimi
Sadeq Ebrahimi am 3 Dez. 2019
Beantwortet: Sushmita Dey am 3 Apr. 2020
How to display an image like this:
Complement.png

Akzeptierte Antwort

Stephan
Stephan am 3 Dez. 2019
Bearbeitet: Stephan am 3 Dez. 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 Kommentar
Sadeq Ebrahimi
Sadeq Ebrahimi am 3 Dez. 2019
Thank you very much, I've been stuck with this problem for weeks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Sushmita Dey
Sushmita Dey am 3 Apr. 2020
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