필터 지우기
필터 지우기

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 CenterFile Exchange에서 Blue에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by