leovandriel / cvplot Goto Github PK
View Code? Open in Web Editor NEWGraph plots, drawing, layout and windows in OpenCV
License: MIT License
Graph plots, drawing, layout and windows in OpenCV
License: MIT License
@leonardvandriel wow, this is a great addition to c++ plotting!
I'd like to be able to write the figure to an image buffer. Is there a way to plot to a cv::Mat or convert the figure to a Mat?
Hi, is it possible to save the plot as an image.
I could not find any clear example for that.
thanks.
I really like this library and would like to use it in my project. However, its dependency on GLFW conflicts with the windowing system already being used with another dependency.
I do not see any reason for this coupling - is there a way to simply render figure to an OpenCV image so that I can do what I want with it, without requiring GLFW create window function to be called?
Thanks in advance.
Hi!
I just want to ask which opencv version you code can run on? I use 2.4.9 and get a hundreds of errors when building your project. However, I also believe it 's a great application. Thank you so much for sharing!
In VC++ 2017, following line leads to hang-up/infinite loop in release build.
Debug build works fine.
cvplot::figure("roi").series("residue").setValue({0, 0, 0, 0, 0, 0, 0, 0, 0});
One of the axis colours is attached with the text_color_(not axis_color_). Is it intended?
I am trying to use cvplot in 2 threads where each of the thread draws separate plots. The problem is that it freezes when view flush or finish is called. It seems like there is a shared component in the view class. Does anyone have the same issue?
PS. Same problem when thread 1 display opencv window and thread 2 try to draw a plot.
make demo
works as does running ./bin/demo
from the repo root directory. However if I cd to the bin directory and ./demo
the program crashes with the error:
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /home/jason/mysource/opencv/modules/imgproc/src/resize.cpp, line 4044 terminate called after throwing an instance of 'cv::Exception' what(): /home/jason/mysource/opencv/modules/imgproc/src/resize.cpp:4044: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize
Two small windows briefly appear but the larger demo one never does. I will see if I can figure anything out, but help would be great. This is a great project by the way.
It seems like set function does not handle cvplot::Circle data properly.
std::vector<std::pair<float, cvplot::Point2>> pole({
std::pair<float, cvplot::Point2>(5.0f,{X(0),Y(0)}) // Expected usage of set with vector<pair<float, Point2>>
std::pair<float, cvplot::Point2>(X(0),{Y(0),5.0f}) // The code actually works.
});
figure.series("South Pole")
.type(cvplot::Circle)
.color(cvplot::Red)
.set( pole);
figure.show(false);
Hi,
First of all, really nice project :)
Does it have a way to save plotted graph?
to have more customization of report colors:
please enable white background. currently white background result with pale gray.
please extern paleness as public.
this will be a nice contribution if you think to contribute OpenCV library
As far as I know, the windows are displayed one by one,how to display multiple windows at the same time?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.