complement of an image

9 vues (au cours des 30 derniers jours)
Sadeq Ebrahimi
Sadeq Ebrahimi le 3 Déc 2019
How to display an image like this:
Complement.png

Réponse acceptée

Stephan
Stephan le 3 Déc 2019
Modifié(e) : Stephan le 3 Déc 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 commentaire
Sadeq Ebrahimi
Sadeq Ebrahimi le 3 Déc 2019
Thank you very much, I've been stuck with this problem for weeks

Connectez-vous pour commenter.

Plus de réponses (1)

Sushmita Dey
Sushmita Dey le 3 Avr 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')

Catégories

En savoir plus sur Modify Image Colors dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by