how to display an image from a matrix in matlab?
43 次查看(过去 30 天)
显示 更早的评论
Hello, I am looking for the matlab function that allows me to transfer a confusion matrix has a picture, thank you
0 个评论
回答(2 个)
Image Analyst
2012-12-24
Use image(), or imshow() (in the Image Processing Toolbox). If it's a floating point image, you need to use imshow(yourImage, []).
3 个评论
Walter Roberson
2012-12-24
There is no difference to MATLAB between an "image matrix" and a "data matrix". It is all just data. Use imagesc(YourMatrix) or imshow(YourMatrix,[])
Maurizio De Pitta'
2012-12-25
imagesc(yourmatrix)
will solve your issue.
Cheers,
M
1 个评论
Image Analyst
2012-12-25
By default, imagesc applies some weird colormap that's almost never what you want. Then you have to apply the correct colormap, like gray or whatever. That's why I avoid it and use imshow instead, which applies no colormap - it's just the normal gray scale colormap for a gray scale image.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Blue 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!