Hello, I am using Appedesigner where I have a ImageButtonDownCallback(app, source, eventargs) event that takes an image from a UIAxes and creates a ROI in UIAxes2. The ROI is created from the larger image on UIAxes centred around the mouse click coordinates. This works fine.
cla(app.UIAxes2,'reset');
n=str2num(app.ImageScalenEditField.Value);
[high,low] = Autoscale(app,ROI,n);
app.myimage=imshow(ROI,[low,high],'Parent',app.UIAxes2)
My issue is, I also use the UIAxes2 to view plots from other analaysis and sometimes want to redraw the original ROI that was on the UIAxes2 with the same image scaling that was used in the original imshow. I thought I could some how use app.myimage like
imshow(app.myimage,'Parent',app.UIAxes2);
or
Is this possible or do I have to fully calc and draw it again like
n=str2num(app.ImageScalenEditField.Value);
[high,low] = Autoscale(app,ROI,n);
app.myimage=imshow(ROI,[low,high],'Parent',app.UIAxes2)
Thanks
Jason
0 Comments
Sign in to comment.