complement of an image

조회 수: 4 (최근 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