Git Product home page Git Product logo

bjontegaard_cpp's Introduction

Bjontegaard Metric implementation for C++17 (or later).

Description:

This project contains an implementation of the Bjontegaard metric to calculate Delta SNR and Delta Rate, using arbitrary number of data points. The calculated results comply with VCEG-M33 when using 4 data points. This code relies on the Eigen3 library to perform the polynomial fitting of curves.

The library provides two functions (see bdcpp.h for type details):

value_type bdsnr(const curve_data_type& curveA, const curve_data_type& curveB, const int polyOrder = 3);

value_type bdbr(const curve_data_type& curveA, const curve_data_type& curveB, const int polyOrder = 3);

Normally, curve fitting is done using a 3rd order polynomial, however this code can also do higher order approximations to improve precision.

Note: This code is a port of the original VBA implementation (see Bjontegaard ETRO project) to C++.

Building:

No special steps are required.

The example build uses Conan and CMake. Create a build folder and from there issue:

conan install <path_to_source_root> -s build_type=Release
conan install <path_to_source_root> -s build_type=Debug
cmake <path_to_source_root>

Author:

Tim Bruylants

License:

MIT license, see included LICENSE.txt file.

References:

[1] G. Bjontegaard, Calculation of average PSNR differences between RD-curves (VCEG-M33)

Copyright (C) 2022 Tim Bruylants.

bjontegaard_cpp's People

Contributors

tbr avatar youngsx avatar elxy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.