Circle Detection - c

I need help developing a circle detection algorithm to detect snooker balls. Does anyone know any algorithms that can be implemented in C and open cv? I'm having trouble getting this done

OpenCV 2.3 comes with HoughCircles. The C++ API for OpenCV 2.1 also implements the function: http://opencv.willowgarage.com/documentation/cpp/imgproc_feature_detection.html#HoughCircles

Related

Image Stitching using OpenGL ES in C

I want to stitch some images using OpenGL ES in C language. But I don't have much idea (only basic) about OpenGL ES and Image processing. I have checked on google for sample code. But I don't find any. I can see some applications which uses OpenCV for stitching. But I don't want to use OpenCV in my application.
Does anyone have the sample code or If you have any idea on OpenGL ES functions which can be used for stitching please share.

cairographics glade gtk3 c programming

I'm trying to develop an app using GTK3 + Glade and following examples and suggestions on internet I can obtain a first prototype of the application.
Now I want to add some plots in the app. I found that, in this contest, the Cairo library is the right solution. For the Cairo library I found this tutorial http://zetcode.com/gfx/cairo/
I tried to merge GTK3, Glade and Cairo using the C language but I'm not sure to use this tools in the right way.
Could you suggest me an example where using these tools is built an app that, e.g. pushing a button appear the plot of a curve?
Thank you
In Glade, you just need to add a GtkDrawingArea and you draw in it using cairo. Give a look at my gtk3-graph sample application that uses GTK+ 3 and cairo to plot a curve.

How to rotate image in android using android ndk

i want to rotate bitmap in android . i don't want to use android api but want to use c code for image processing and fast response. can u tell me how to achieve this in c??
Thank you in advance
You could use OpenCV for Android by processing a rotation matrix in native code. But if you really just want to rotate an image, using native code for this would be over the top, unless you plan adding more complex transformations. A single transformation supposedly won't be processed faster in comparison to just rotating it in Java.
There is a nice solution for your needs: ImageMagick. You can compile C version of ImageMagick with NDK. There is also ImageMagick-Android project on github, but it doesn't look like a ready-to-use solution.

Is there any 3D visualization library or toolkit for C? (No C++ please!)

Basically I'm interested in knowing if there exists any openGL 3D visualization toolkit for C for scientific uses?
I don't know about any straight forward libraries, but Vis5D+ ist written in C, iirc. Maybe you can incorporate that into your project.
Edit: Oh, and of course IBM's DX is also there, but also not a library.
Well, currently I'm using Matlab in combination with C by using the MEX interface. It allows me to write performant code in C (where Matlab code only is often too slow for real scientific computing) and visualize it with Matlab.
Check it out!

Is there any crossplatform C library for using Pixel Shading filters?

Is there any crossplatform C library for using Pixel Shading filters? to run pixel shader inside your programm, beter as native part of your programm (not like precompiled file), and better for using with abstract data - not only images
Does this do what you want? http://www.khronos.org/opencl/ The question is not very detailed, or clear, but I think OpenCL qualifies as an answer...
OpenCL or CUDA are the closest to what you want.

Resources