how can i know the size of the file
163 ビュー (過去 30 日間)
古いコメントを表示
I have this file in .exr extension. I need to know the size of the file and convert the value to kB in order for me to calculate the Mean Squared Error. My supervisor advised me to used dir function but I'mm not sure how to do this. Thanks
0 件のコメント
回答 (2 件)
Azzi Abdelmalek
2016 年 12 月 4 日
編集済み: Azzi Abdelmalek
2016 年 12 月 4 日
s=dir('yourfile')
the_size=s.bytes
0 件のコメント
Image Analyst
2016 年 12 月 4 日
What is your reference image? You need one to compute MSE. You can use the immse() function in the Image Processing Toolbox.
You can use imfinfo() to determine both the file size and the size in your MATLAB program. The sizes may be different if the file had been compressed, like it was stored in JPG format.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!