complement of an image

9 visualizzazioni (ultimi 30 giorni)
Sadeq Ebrahimi
Sadeq Ebrahimi il 3 Dic 2019
Risposto: Sushmita Dey il 3 Apr 2020
How to display an image like this:
Complement.png

Risposta accettata

Stephan
Stephan il 3 Dic 2019
Modificato: Stephan il 3 Dic 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 Commento
Sadeq Ebrahimi
Sadeq Ebrahimi il 3 Dic 2019
Thank you very much, I've been stuck with this problem for weeks

Accedi per commentare.

Più risposte (1)

Sushmita Dey
Sushmita Dey il 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')

Categorie

Scopri di più su Modify Image Colors in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by