Passing data between axes
1 次查看(过去 30 天)
显示 更早的评论
I am doing the GUI for image processing. I want to make about 2 axes in the GUI. I already manage to load image in axes 1. To continue, how can I pass the data of the image that I load on axes 1(that show original image) to axes 2(that show processed image) so that I can process the image in axes 2 without messing with the original image in axes 1?
0 个评论
采纳的回答
Ben11
2014-8-25
编辑:Ben11
2014-8-25
You can:
1) Create a dummy original image and store it in the handles structure of your GUI.
handles.DummyImage = OriginalImage;
guidata(hObject,handles);
2) In axes2, use something like:
imshow(handles.DummyImage); % example to display the image
%... do your processing.
to retrieve it in your axes 2 and do whatever you want with it. Youcan store anything you want in the handles structure of the GUI, so it's easy to pass variables between multiple callbacks.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!