Combine two images from two callbacks
Show older comments
Hi,
Based on another question ( https://www.mathworks.com/matlabcentral/answers/152309-store-a-labeled-image-to-be-called-later-by-a-callback ) I am trying to combine two images
One of the images is based on setappdata in a callback
setappdata(handles.imageAxes, 'IVariable', displayedImage.cdata);
and the other one is a handles.myImage , which is mainly a I = imread(fullFileName) in another callback.
The script below is not working and I think it is because of the cdata, how can I fix it?
Thanks a lot.
Script:
I = getappdata(handles.imageAxes , 'IVariable');
X = handles.myImage;
Icombine = [X I];
figure
imshow(Icombine);
2 Comments
Geoff Hayes
on 26 Aug 2014
When you say it is not working, do you mean that there is an error message, and if so, what is it?
What are the dimensions of X and I?
as hz
on 26 Aug 2014
Accepted Answer
More 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!