GUI
조회 수: 2 (최근 30일)
이전 댓글 표시
I have to get an image address through the Edit Box in the GUI. then, i want to read the image on that address using the imread function. how to do it?
Address is of the form C:\Users\user\Documents\MATLAB\xyz.png
댓글 수: 0
채택된 답변
Image Analyst
2012년 6월 5일
Why not use uigetfile() instead - it's much friendlier to the user than having to type in some filename that they can't even see or easily verify that it exists.
추가 답변 (1개)
Walter Roberson
2012년 6월 5일
filename = get(handles.EDITBOXTAG, 'String'); %adjust EDITBOXTAG as needed
theimage = imread(filename);
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!