quality.bd_wrapper
- class BDWrapper(method: str = 'akima', interpolator: bool = False, require_matching_points: bool = False, min_overlap: float = 0.0)[source]
Bases:
object- Parameters:
method (str)
interpolator (bool)
require_matching_points (bool)
min_overlap (float)
- method: str = 'akima'
- interpolator: bool = False
- require_matching_points: bool = False
- min_overlap: float = 0.0
- create_json_report(anchor, rd_curves, lightfield, rd_plot_config, configuration_reader)[source]
Creates JSON report with BD rates, maintaining lightfield order from configuration.
- Parameters:
anchor (Any) – Anchor RD curve view
rd_curves (List[Any]) – List of RD curve views to compare
lightfield (LightField) – Light field data
rd_plot_config (Dict[str, Any]) – RD plot configuration
configuration_reader (ConfigurationReader) – Configuration reader instance
- Returns:
Path to the created JSON report file
- Return type:
Path
- static create_bd_rate_tables(configuration_reader)[source]
Generates BD-rate tables from JSON report files.
- Parameters:
configuration_reader (ConfigurationReader) – Configuration reader instance
- Returns:
None
- Return type:
None