compute_quality_metrics

Author: Ismael Seidel Affiliation: Embedded Computing Lab (ECL), Federal University of Santa Catarina (UFSC)

Description:

This module handles quality metrics computation, utilizing the tools defined in the quality.json file (e. g, VMAF, COMPARE) for each metric.

get_wrapper_instances(configuration, path)[source]

Get wrapper instances for quality metrics

Parameters:
  • configuration (ConfigurationReader) – Configuration file

  • path (Union[str | Path]) – Path in which the reports will be saved

Returns:

Dictionary in which the key is the metric name

Return type:

dict

and the value is the quality wrapper :rtype: dict

get_metrics_bpps(configuration, path, codec_raw_type, lightfield_name, wrapper_instances)[source]

Calculate quality metric for each target bitrate (bpp)

Parameters:
  • configuration (ConfigurationReader) – Configuration file

  • path (Union[str | Path]) – Path to decoded light fields

  • codec_raw_type (str) – Raw light field file type (e. g, PGX, YUV)

  • lightfield_name (str) – Light field name (e. g, Bikes, Danger_de_Mort)

  • wrapper_instances (dict) – Wrapper instances dictionary with each metric

Returns:

Metrics list result

Return type:

list

main(configuration=None)[source]
Parameters:

configuration (ConfigurationReader)