saving the output image

6 views (last 30 days)
Sneha P S
Sneha P S on 9 Feb 2018
Commented: Image Analyst on 20 Jul 2020
Ineed to save my output image using a filename in one folder? How is it possible?

Accepted Answer

Jan
Jan on 8 Mar 2018
Edited: Jan on 8 Mar 2018
Folder = 'C:\Your\Folder';
File = 'Image.png';
Img = rand(640, 480, 3);
imwrite(Img, fullfile(Folder, File));
  3 Comments
Kashyap Koshti
Kashyap Koshti on 20 Jul 2020
can it rewrite on same image?
Image Analyst
Image Analyst on 20 Jul 2020
Yes, you can overwrite an existing image.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!