Placing and Editing an Image within a GUI using GUIDE.

조회 수: 1 (최근 30일)
Caleb
Caleb 2012년 7월 9일
How do you place an image within a pre-defined border on a GUI?
I set an axes down hoping to put the image inside, but that didn't work.
I'm hoping to put three images side-by-side, the first being the original grayscale image, the second being the image as we apply certain processing techniques to it, and the third showing the iteration within each step so that we can optimize the result of each step (i.e. varying the size of structuring elements, filters, etc.)

채택된 답변

Image Analyst
Image Analyst 2012년 7월 9일
You can use GUIDE to place three axes on the figure, then (option 1) use axes() to switch between them and use imshow() to display in the current axes, or else (option 2) use the 'Parent' option of imshow() to specify the axes in which to display your image. You can look at my thresholding example in my File Exchange which has 3 images: the original, the binary (thresholded) version, and the masked version. Or look at any of my demos - they all use multiple images. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  댓글 수: 11
Caleb
Caleb 2012년 7월 13일
Looks like a great template. Is there any way to change the 'ImageList' ListBox on the left side of the screen to show folders on the MATLAB path? I'd rather the user have to click through a few folders then have to guess where they are going to place their image files.
Image Analyst
Image Analyst 2012년 7월 14일
You'd have to get the path
matlabPath = path;
then go through each folder on the path adding the files from that folder to the listbox. I don't see any other way since the path can include totally separate and unrelated folders - they're not all subfolders of one master folder.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by