Combine two images from two callbacks
Mostrar comentarios más antiguos
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 comentarios
Geoff Hayes
el 26 de Ag. de 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
el 26 de Ag. de 2014
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!