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)
Show older comments
mobeen mahmood
on 4 Nov 2017
Commented: mobeen mahmood
on 4 Nov 2017
I am using a structure so any help in this regard will be appreciated.
0 Comments
Accepted Answer
Walter Roberson
on 4 Nov 2017
[~, basename, ext] = fileparts(This_file_address);
newaddress = fullfile( OutputDirectory, [basename, ext] );
imwrite(Modified_image, newaddress)
More Answers (0)
See Also
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!