Problems with using colormap commands in gui matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
After several research online, i still have a doubt about this command:
-----------------
load flujet
image(X)
colormap(jet)
--------------
I have seen several example of this. However, from what i have noticed that we can only use the load commands if the image is in the .mat file. Is there any other ways for me to read an image using other commands?
Thanks!!
답변 (1개)
Walter Roberson
2012년 10월 19일
편집: Walter Roberson
2012년 10월 19일
imread(), or mmread() or the avifile class [to read images], or the I/O operations such as fread() if the image is stored as a binary file.
Or compute the image.
The colormap() command is completely independent of how you get the data into MATLAB.
댓글 수: 8
Image Analyst
2012년 10월 25일
OK, now that you've learned how to use the debugger, let's get back to my original question "What does it say when you over the mouse over that when you stop there for a breakpoint?" In other words, what is the value of handles.currentimage? There are many ways you can see the value of handles.currentimage, as you now know. I'll review them.. If you don't want to hover the mouse over it, then click in it and type control-D, or double-click on its name in the workspace, or just type it into the command window and hit enter. OK, so what does it say the value is? Is it either a valid filename string, or a numerical array?
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!