View Single Post
Old 13th February 2019, 21:57   #2  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by WorBry View Post
While I still have the test files I'd like to see how the SSIM and GMSD metrics (in muvsfunc) compare.

The function descriptions state:

SSIM - 'The mean SSIM (MSSIM) index value of the distorted image will be stored as frame property 'PlaneSSIM' in the output clip'.

GMSD - 'The distortion degree of the distorted image will be stored as frame property 'PlaneGMSD' in the output clip. The value of GMSD reflects the range of distortion severities in an image.'

But I'm not clear how to access these results.
The easiest way probably is to use zoptilib.py which is part of the Zopti optimizer. But you don't need to run Zopti at all, just your script which calls zoptilib.

Here's a simple example:

Code:
from zoptilib import Zopti

# read input video
orig = core.ffms2.Source(source=r'source.avi')

# initialize output file and chosen metrics 
zopti = Zopti('results.txt', metrics=['ssim', 'gmsd'])

#   ... process the video ...
# alternate = some_process(orig)

# measure similarity of original and alternate videos, save results to output file
zopti.run(orig, alternate)
The output file will contain frame number and the chosen metrics separated by ; and on the last line the sum of per frame values. The file will be written when all of the video frames have been processed (on the last frame).

The latest version of zoptilib is currently at here.

There's also MDSI metric but for that you need to upgrade to the latest muvsfunc version manually.

Last edited by zorr; 13th February 2019 at 22:56.
zorr is offline   Reply With Quote