complement of an image

9 visualizaciones (últimos 30 días)
Sadeq Ebrahimi
Sadeq Ebrahimi el 3 de Dic. de 2019
Respondida: Sushmita Dey el 3 de Abr. de 2020
How to display an image like this:
Complement.png

Respuesta aceptada

Stephan
Stephan el 3 de Dic. de 2019
Editada: Stephan el 3 de Dic. de 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 comentario
Sadeq Ebrahimi
Sadeq Ebrahimi el 3 de Dic. de 2019
Thank you very much, I've been stuck with this problem for weeks

Iniciar sesión para comentar.

Más respuestas (1)

Sushmita Dey
Sushmita Dey el 3 de Abr. de 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