quality.quality_tool_wrapper
- class QualityToolWrapper(reports_path, required_format)[source]
Bases:
ABCAbstract base class for quality metric tool wrappers.
- Parameters:
reports_path (str | Path)
required_format (str)
- __init__(reports_path, required_format)[source]
Initializes the quality tool wrapper with reports path and required format.
- Parameters:
reports_path (Union[str, Path]) – Path to store metric reports
required_format (str) – Required lightfield format for the tool (e.g., “yuv”)
- Returns:
None
- Return type:
None
- property reports_path: str | Path
Gets the path where quality reports are stored.
- Returns:
Reports path
- Return type:
Union[str, Path]
- get_metrics(original_lightfield, decoded_lightfield, remove_converted_lfs_after_using=False)[source]
Computes quality metrics between original and decoded light fields.
- Parameters:
original_lightfield (RAWLightFieldData) – Original light field data
decoded_lightfield (RAWLightFieldData) – Decoded light field data
remove_converted_lfs_after_using (bool, optional) – Whether to remove converted files after use, defaults to False
- Returns:
Path to the metrics report
- Return type:
Union[str, Path]