how can i know the size of the file
조회 수: 162 (최근 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!