Effacer les filtres
Effacer les filtres

Saving image with a plot in a variable.

3 vues (au cours des 30 derniers jours)
Shubham
Shubham le 26 Mai 2012
I have some image 'I' and a plot of y vs x. I overlay the plot on 'I' as follows
imshow(I); hold on; plot(x,y); hold off;
I would like to save this image with the plot in a "variable". How can I do that? I don't want to save it in a file using saveas option.
There can be more ways of plotting a graph on "I" like running a 'for' loop through size(x) and setting I(y,x)=1. Are there any short methods to achieve this.
Thanks

Réponses (1)

Image Analyst
Image Analyst le 26 Mai 2012
No. If you want to "burn" the data points into the image without using saveas() or export_fig() then you'll have to do it manually via a for loop as you suggest, though it's not hard and should be fast.

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by