フィルターのクリア

how to display an image from a matrix in matlab?

43 ビュー (過去 30 日間)
BANI tita
BANI tita 2012 年 12 月 24 日
Hello, I am looking for the matlab function that allows me to transfer a confusion matrix has a picture, thank you

回答 (2 件)

Image Analyst
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
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,[])
BANI tita
BANI tita 2012 年 12 月 25 日
thank you

サインインしてコメントする。


Maurizio De Pitta'
Maurizio De Pitta' 2012 年 12 月 25 日
imagesc(yourmatrix)
will solve your issue.
Cheers,
M
  1 件のコメント
Image Analyst
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 ExchangeBlue についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by