Hi, i'm reading images from a text file which contains their address and names. After reading and modification, i want to write the images in a new folder but with same name. How can i write them?

5 views (last 30 days)
I am using a structure so any help in this regard will be appreciated.

Accepted Answer

Walter Roberson
Walter Roberson on 4 Nov 2017
[~, basename, ext] = fileparts(This_file_address);
newaddress = fullfile( OutputDirectory, [basename, ext] );
imwrite(Modified_image, newaddress)

More Answers (0)

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!