impixelinfo - function only works once

1 次查看(过去 30 天)
Jason
Jason 2014-3-25
编辑: Jason 2014-3-25
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by