how can i know the size of the file

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

Antworten (2)

Azzi Abdelmalek
Azzi Abdelmalek am 4 Dez. 2016
Bearbeitet: Azzi Abdelmalek am 4 Dez. 2016

3 Stimmen

s=dir('yourfile')
the_size=s.bytes
Image Analyst
Image Analyst am 4 Dez. 2016

0 Stimmen

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.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 4 Dez. 2016

Beantwortet:

am 4 Dez. 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by