How to save image with floating number name?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I am trying to write a script and needed help with come of the code part.
I want to save the image text in png format with a name in floating points.
0 Kommentare
Antworten (1)
DGM
am 23 Jun. 2021
You mean something like this?
mypict = rand(100);
mn = mean(mypict(:));
filename = sprintf('the_mean_pixel_value_is_%.4e.png',mn);
imwrite(mypict,filename);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!