How to implement a matlab GUI interface?
Show older comments
Hello,
I have a question. Say I have 5 images and I have designed a GUI interface to view all those images. I want to implement a slider that would help me to browse the images one by one. I have written the following code but it is not executing:-
for i=1:2
filename= strcat(int2str(i),'.bmp');
filename=fullfile(directoryname,filename);
I=imread(filename);
% Create a scroll panel for left image
hSpL = imscrollpanel(I);
set(hSpL,'Units','normalized',...
'Position',[0 0.1 .5 0.9])
% Create scroll panel for right image
hSpR = imscrollpanel(I);
set(hSpR,'Units','normalized',...
'Position',[0.5 0.1 .5 0.9])
% Add a Magnification box
hMagBox = immagbox(I);
pos = get(hMagBox,'Position');
set(hMagBox,'Position',[0 0 pos(3) pos(4)])
%%Add an Overview tool
imoverview(hImL)
end
Please help
1 Comment
Walter Roberson
on 12 Mar 2013
Is it giving an error message?
Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!