How to make history like in Photoshop..??
Afficher commentaires plus anciens
Hello,, ^^ How to make history like in Photoshop..?? So, we can move to previous step,. I want to apply it to an image in axes.. In fine, i want to make really like history in Photoshop.. Thank You before..
Réponses (1)
Walter Roberson
le 7 Août 2012
0 votes
There is no built-in method for this. You need to program it yourself, including recording all relevant variables so that you can change the "current" values to be what they used to be.
2 commentaires
Rahma Yeni
le 8 Août 2012
Walter Roberson
le 8 Août 2012
Save them anywhere you like. http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F
this_image = findobj(gca, 'type', 'image');
this_image_props = get(this_image, {'AlphaData', 'AlphaDataMapping', 'CData', 'CDataMapping', 'Xdata', 'YData'});
this_figure_cmap = get(ancestor(this_image, 'figure'), 'colormap');
Now save this_image_props and this_figure_cmap: between the two of them, they have the information needed to recreate the image.
To re-activate, presuming that there is an existing image to restore over top of:
this_image = findobj(gca, 'type', 'image');
set(this_image, this_image_props);
set( ancestor(this_image, 'figure'), 'Colormap', this_figure_cmap);
Catégories
En savoir plus sur Images 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!