Problem with image function in GUI

Is there any problem with function image() when creating GUI? when i am using it not in gui i dont have any problem. but in my GUI it just doesnt show anything but the grid, no data. If i use pcolor() instead of image() it works fine.

답변 (1개)

Image Analyst
Image Analyst 2013년 12월 10일

0 개 추천

No there is no problem. You probably overwrote it with a variable. Did you do anything like
image = imread('cameraman.tif');
?????

댓글 수: 2

By the way, don't use pcolor for images because it chops off the last row and last column. Try this and see what you get:
pcolor(magic(4)) % Try to display a 4 by 4 image - only shows 3x3.
Jakub
Jakub 2013년 12월 10일
편집: Jakub 2013년 12월 10일
I know, that is why i dont want to use it. I meant fucntion image(data_input) doesnt show anything...not imread...

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

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2013년 12월 10일

편집:

2013년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by