impixelinfo - function only works once

5 views (last 30 days)
Jason
Jason on 25 Mar 2014
Edited: Jason on 25 Mar 2014
Hello. I am using Guide to display an image that I have previously stored in memory.
setappdata(0,'Zoom',Zoom);
axes(handles.axes2)
axis off;
me=mean(Zoom(:));
sd=std2(Zoom(:));
low = me - sd;
high = me+3*sd;
imshow(Zoom,[low, high])
I amt hen able to hold my mouse over the image and have the coordinates and intensity values displayed by using
hp = impixelinfo;
set(hp,'Position',[5 1 300 20]);
This is all performed in a listbox callback. the listbox cotnains several images.
when I recall with a different image, whilst the new image is displayed, the imagepixel info doesn't work, in fact, the text just disappears. Is there a refresh that I need to do. I have tried drawnow, or is there something else wrong.
Thanks for any help

Answers (0)

Categories

Find more on Environment and Settings 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!