MATLAB Answers

My white and black strips becomes a a black surface using imread and imshow

조회 수: 1(최근 30일)
Fan Yang
Fan Yang 2021년 9월 16일
편집: Image Analyst 2021년 9월 16일
I have a .PNG picture containing black and white strips shown below.
I was trying show this image in MATLAB using imread and imshow:
strips = imread('strip.png')
after running these two lines of code, the image becomes a black surface, shown below:
I thought maybe all the black strips were squished together and zooming could solve the problem, but it did not.
How can I show the original image?
  댓글 수: 2
Dave B
Dave B 2021년 9월 16일
It seems to work with the image you included in your question, maybe attach the original?

댓글을 달려면 로그인하십시오.

추가 답변(0개)





Community Treasure Hunt

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

Start Hunting!

Translated by