Git Product home page Git Product logo

cvplot's Introduction

cvplot Icon

cvplot

Graph plots, drawing, layout and windows in OpenCV.

About

Yet another cvplot library? Yes. Because they're all pretty bad. Like this one.

Build

Install the dependencies CMake and OpenCV. If you're on macOS, use Homebrew:

brew install cmake opencv

On Ubuntu:

apt-get install cmake libopencv-dev

Next build using CMake. The easiest way:

make

Internally it creates a build folder and runs CMake from there.

This project is developed and tested on macOS and Ubuntu.

Example

To draw a simple line graph:

cvplot::figure("myplot").series("myline")
  .addValue({1.f, 3.f, 2.f, 5.f, 4.f});
cvplot::figure("myplot").show();

cvplot example

Features

  • Graphs: line, histogram, scatter
  • Time series, parametric, range
  • Automatic and dynamic coloring
  • Transparency
  • Image and text drawing
  • Sub-windows (views)
  • Window and view layout
  • Green view frame
  • Mouse support
  • OpenCV-like API (highgui)
  • Distinguished dated look

Demo

To see some of the plotting in action, run the demo:

make demo

cvplot demo

The style of windows and colors are intentionally pale and pixelated to give a dated feel to the whole thing.

Test

If googletest is available on your system, run tests with:

make test

cvplot's People

Contributors

palerikm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.