saving the output image

Ineed to save my output image using a filename in one folder? How is it possible?

 Risposta accettata

Jan
Jan il 8 Mar 2018
Modificato: Jan il 8 Mar 2018
Folder = 'C:\Your\Folder';
File = 'Image.png';
Img = rand(640, 480, 3);
imwrite(Img, fullfile(Folder, File));

3 Commenti

sneha madda
sneha madda il 12 Giu 2019
Thank you it helped me.
Kashyap Koshti
Kashyap Koshti il 20 Lug 2020
can it rewrite on same image?
Image Analyst
Image Analyst il 20 Lug 2020
Yes, you can overwrite an existing image.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Convert Image Type in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by