Combine two images from two callbacks
Afficher commentaires plus anciens
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 commentaires
Geoff Hayes
le 26 Août 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
le 26 Août 2014
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Arithmetic dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!