bundle.combine_curves

Author: Leonardo de Sousa Marques Affiliation: Embedded Computing Lab (ECL), Federal University of Santa Catarina (UFSC)

Description:

This module combines two or more R-D curves loaded from pre-computed RD report JSON files and generates a single comparative R-D plot per extra_rd_curves entry.

Each entry in extra_rd_curves declares a list of rd_files, each identified by an id and pointing to a report JSON file with its own rd_preferences (title, color, marker). An optional anchor field names the id of the curve to be used as BD-rate reference.

The module reuses the existing RDCurveMatplotlibView / RDPlotMatplotlib infrastructure from rd_plot without modifying it.

generate_combined_rd_plots(configuration, results_path)[source]

Generate combined R-D plots for all entries declared in extra_rd_curves.

Each entry in configuration["rd_plots_from_bundle"]["extra_rd_curves"] produces one plot file per metric found across its report files. If an anchor id is specified, BD-rate values are computed relative to that curve.

Parameters:
  • configuration (ConfigurationReader) – Configuration reader containing the full config

  • results_path (Path) – Root directory where plots will be saved

Return type:

None

main()[source]

Generate combined R-D plots from extra_rd_curves declared in configuration.

Usage: python combine_curves.py <configuration.json>

Raises:

SystemExit – If configuration file is not provided or paths are invalid

Return type:

None