Effacer les filtres
Effacer les filtres

Hi i have the following code ? How i can save a file which i show by'imshow' function?

1 vue (au cours des 30 derniers jours)
I1=imread('G:\ethanol+water flame 2 images\ethanol+ water flame 2\ethanol+ water flame 2001395.jpg');
I2=figure,imshow(I1,[low high]);
if low<=60 && high>=90
end
save I2
I3=edge(I2,'canny');
figure,imshow(I3)

Réponse acceptée

Image Analyst
Image Analyst le 16 Juil 2012
Not sure what you mean by "save a file" but you can use imwrite to save a variable as a file:
imwrite(I3, 'Edge Image.png');
or you can save the whole figure, which would include any annotation (text, arrows, etc.), tick marks, etc. in the overlay by using export_fig(): http://matlab.wikia.com/wiki/FAQ#How_do_I_save_my_figure.2C_axes.2C_or_image.3F_I.27m_having_trouble_with_the_built_in_MATLAB_functions.
  3 commentaires
Andreas Goser
Andreas Goser le 17 Juil 2012
+1 vor your guessing skills
saras
saras le 18 Juil 2012
Hi i have to extract a portion from an image.I have the following co-ordinates x=[153 259 153 259] y=[393 393 474 474] I'm not sure to use which function?Plz help me

Connectez-vous pour commenter.

Plus de réponses (1)

Andreas Goser
Andreas Goser le 16 Juil 2012
Modifié(e) : Andreas Goser le 16 Juil 2012
To save figures created with IMSAVE, there is no other way than with standard figures. See the doc for SAVEAS and PRINT.

Catégories

En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by