Ask Your Question
0

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 -0600

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 http://dasl.mem.drexel.edu/~noahKuntz/openCVTut8.html . 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 cvFree....you 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

Comments

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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

Stats

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

Seen: 165 times

Last updated: Oct 16 '13