Plot graphs in OpencCV [duplicate] - c++

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Drawing and Plotting graph in OpenCV
How can I plot a single row of an image using OpenCV? I found some libs like http://www.shervinemami.info/graphs.html, but are there any libs that use opencv2 library (cv:: functions, core-module and so on...)

Don't.
OpenCV is for reading and interpreting images.
Use a drawing library - or better still a graph-drawing library.
What platform are you on? Some cross-platform ones are here:
http://www.gnu.org/software/libxmi/libxmi.html
http://www.boutell.com/gd/
http://www.levien.com/libart/
Specifically for charts and graphs, see this question:
C++: Free easy way to draw graphs and charts?

Related

Maximum file size for sprites in Cocos2d [duplicate]

This question already has answers here:
What is the maximum texture size available on the iPad?
(3 answers)
Closed 8 years ago.
What's the maximum size a file can be for a sprite? I have a background for a level that's 9200x640 and when I try to load the page it's on, the app crashes. If this is an issue, what can I do to resolve it? If not, what should I do in order for it to work?
Depends on the device (usually 2048×2048 or 4096×4096). For large images like the one you are using, you really need to use tiled images. Ray Wenderlich has an example here:
http://www.raywenderlich.com/29458/how-to-make-a-tile-based-game-with-cocos2d-2-x

2d graph in real-time by using opencv and c++

I have a really basic question in opencv and c++. I am trying to graph something in real time by using opencv. I am looking to find a function to draw a graph in rel-time. But still unssuccesful.
I need a function that gets two arrays as an input one for x axis and one for y. I tried with this but seems not work in real-time http://www.shervinemami.info/graphs.html
I just need to know if there is something available in opencv or not.
Thanks in advance.
OpenCV provides just low level drawing primitives, so you have to look for other libraries to plot chars, or create the code yourself.

Light easy way to implement contour drawing feature?

I am trying to implement a feature of drawing closed contour that defines my region of interest. I would like to manually draw a contour that encloses some object in a image using my mouse. The contour should be closed at the end, something like ImageJ does. I am wondering if there is any tools, 3rd party libs in C++ can help with this. I know probably OpenCV can be a source, but I am trying to implement something light and easy. So is there anyway to do so? Any pointer is appreciated. Thanks. --Nick
I think you can use WPF. An excellent example can be found here: http://www.codeproject.com/Articles/128705/WPF-rounded-corners-polygon

Make graphics to glow/halo [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to add glowing effect to a line for OpenGL?
I would like to get help for making my graphics glow. I would like to do it the same way as in Tron 2.0 game, without using advanced stuff like shaders etc. Mainly because my video card isn't capable.
I know I can get the technique from site: wanted outcome
But I don't know, how to do it in OpenGL in c++. Maybe somebody has code for doing it or step by step guide or can point me in direction where to obtain code or step by step guide for doing it. Let's say that my program draws a maze like in the picture below:
And now I would like to get that maze lines something like the picture below:
I have done exactly the same maze type of game, with glowing lines :)
The way we did it was to add rectangles around lines, with glow textures.
Sorry for not adding step-to-step tutorial, but at least you have the general idea there.

What are The opencv function useful for 2d skeleton estimation(ofRecursive centroids) [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Which is the best algorithm to “Estimate and Visulize 2d skeleton using Opencv” from the drawn contour
Opencv functions or stepts for 2d skeleton estimation
See http://opencv.willowgarage.com/documentation/cpp/index.html
I don't see anything for clustering/centroids, but you might try FindContours: http://opencv.willowgarage.com/documentation/cpp/structural_analysis_and_shape_descriptors.html#findcontours .
It sounds like you want to do visualization analysis and this library is more suited to machine vision.