How to save an image to a folder?

Hi everyone
I am running a loop to do some image processing and in every iteration I want to save the processed image into a folder in the desktop. I am using 'imwrite'function but everytime it is giving me an error saying " Error using imwrite (line 459) Can't open file "/Users/Rachel/Desktop/image" for writing. You may not have write permission. "
I want to save the image generated in each iteration into a folder. Is there any other function I should be using? Or is there a way to avoid this error? Can someone please help?
Thanks in advance!

Réponses (2)

Rahul punk
Rahul punk le 2 Juin 2021
Modifié(e) : Rahul punk le 3 Juin 2021

0 votes

%read image
tt= imshow(image) ;
%save your image other location with any name save desktop or any folder also
saveas(tt,'C:\Users\admin\Desktop\testimagesave.jpg') ;

1 commentaire

Rik
Rik le 2 Juin 2021
Modifié(e) : Rik le 3 Juin 2021
This doesn't really answer the question, as the question is about a sequence of files. Your answer doesn't show how to do that.
Your edit does not invalidate my point.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Question posée :

le 11 Mar 2014

Modifié(e) :

Rik
le 3 Juin 2021

Community Treasure Hunt

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

Start Hunting!

Translated by