How to save image with floating number name?
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
DGM
2021 年 6 月 23 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!