My white and black strips becomes a a black surface using imread and imshow
2 次查看(过去 30 天)
显示 更早的评论
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')
imshow(strips)
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
2021-9-16
It seems to work with the image you included in your question, maybe attach the original?
im=imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/740714/image.png');
imshow(im)
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!