Skip to main content

A plot tool for rate distortion curves

Project description

RDPlot

RDPlot is a tool for plotting rate distortion curves. In particular, it can

  • Parse the output of reference software such as HM, SHM, or VTM.

  • Parse data points from xml-formatted files.

  • Parse data from csv-formatted files.

  • Calculate Bjontegaard Delta statistics.

  • Export plots and BD statistics for camera ready presentation.

It was developed along the design principle of easy extensibility. If no parser for your data is available, you can consider to introduce a new parser. If you feel like your parser would be of interest for others, please submit a PR.

Build status

AppVeyor

GitHub Actions

Appveyor

Actions

Code Coverage

https://coveralls.io/repos/github/IENT/RDPlot/badge.svg?branch=master

Installation

In the following sections different installation strategies are outlined:

Installation via pipx

RDPlot is available on PyPi. Therefore, you can directly install RDPlot via pipx:

pipx install rdplot

This should work on all platforms. However, on Apple silicon you might have to fiddle a bit and use Rosetta.

Windows installer

For Windows an installer is available on the release page. The installer will install a released version. If you want to install the most recent (unreleased) version, you can download the installer from Appveyor’s artifacts.

Building from Source

We assume that you are familiar to Python development for the following sections. If you run into any problems, don’t hesitate to use the Issue tracker.

Virtual Environment

If you need system packages that conflict with the packages required for RDPlot, you can use a python virtual environment (see below).

When you are inside a virtual environment, python ignores all system packages and instead uses a dedicated environment, allowing you to install packages with pip that would otherwise conflict with system packages and/or different versions. The pitfall is that you need to activate the environment each time you want to use the program.

You can find more info on virtual environments at https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/.

venv is included in python since version 3.3. If your python version is older consider upgrading, or install venv using:

sudo pip install virtualenv

Download RDPlot. Make sure you do this at a place where it can stay:

git clone --depth 1 https://github.com/IENT/RDPlot
cd RDPlot

Create a virtualenv named “env” inside the RDPlot directory:

python3 -m venv env

Activate the venv and install dependencies:

source env/bin/activate
pip3 install --upgrade pip gitpython

Build and install RDPlot:

python3 setup.py sdist
pip3 install --no-binary rdplot --upgrade dist/rdplot-*.tar.gz

Leave the environment:

deactivate

Remember to activate the environment every time you want to run RDPlot:

cd RDPlot
source env/bin/activate
rdplot
deactivate

To uninstall, simply delete the RDPlot directory.

Mac OS X

Note: things are not tested for Mac. You may have to fiddle a little bit. Please contribute, if you have ideas for improvements.

First of all you need to install python3. You can get it here. If you are using Homebrew you can alternatively install python3 via console:

brew install python@3.9

Moreover, install all the requirements:

cd src/rdplot
pip3 install -r requirements.txt

Additionally install py2app:

pip3 install py2app

Then navigate back to the top level and build an app in alias mode:

cd ../..
python3 setup.py py2app -A

Now you should have an app in the dist folder.

Note: This app contains hard links to the directory with the source. It is strongly recommended to clone the whole directory to your Applications folder. Then you can simply build the app and launch it from the internal search. Another possibility is to put an alias in your Applications folder and/or attach it to the Dock.

If you want to update the app, it is fairly easy: Navigate to the local copy of the repository (now most probably in your Applications folder) and then:

git pull
python3 setup.py py2app -A

Done!

Uninstall is also simple: Just delete the local copy of the repositories and all aliases.

Running from repository without installation

If you want to help improving RDPlot, you most probably need to run it directly from source for development and testing.

Linux

You can start RDPlot from the command line with:

PYTHONPATH=~PATH_TO_RDPLOT/src/ python3 PATH_TO_RDPLOT/src/rdplot/__main__.py

If you want to start the tool out of an IDE, make sure that you have set the PYTHONPATH environment variable correctly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

rdplot-1.3.4-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file rdplot-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: rdplot-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/56.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.6

File hashes

Hashes for rdplot-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d4be7feee2913ea462b945e486306920f8b092243cd322716f68b33faed5f0eb
MD5 1ae74b9f25882e352184f09bd8c86352
BLAKE2b-256 8d41b24424c3daddf75e82911ebd6c9897a13c43bf7e2e82676365aedf43825b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page