Ask Your Question

New to opencv's advaced stuff....can someone give me a simple example of how to use cvAlloc?

asked 2013-10-15 16:47:06 -0500

joeish80829 gravatar image

I looked on google and there were no real examples of how to use it simply...for reference im good enough at opencv to understand everything thats going on here . for example if Im using a bunch of cvCreateImages in a program and using them to make masks like in the afformentioned link which eats alot of ram, where in that program can i stick a cvAlloc to make the program manage ram better and where afterwards do i put the dont have to do the whole thing for me just show me one place i could put a cvAlloc to manage the memory in that program better..or give me another example to help me understand how to use it....and pls pls dont say switch to c++ =)....i do embedded.

edit retag flag offensive close merge delete


Its fun to see that you actually answer that you do embedded and therefore do not use C++ :) Afaik there are tons of embedded platforms who simple support the use of C++ code :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-10-17 07:38:40 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-10-16 01:12:24 -0500

Michael Burdinov gravatar image

If C interface is so important to you, you can use old tutorials of OpenCV 1.0. It had only C interface. C++ interface was added in OpenCV 2.0. The ones I used were: core documentation, image processing documentation, highgui documentation and basic tutorial.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-10-15 16:47:06 -0500

Seen: 82 times

Last updated: Oct 16 '13