c++ - cvCreateFileCapture() -


in learning opencv book, following mentioned statement:

cvcapture* capture = cvcreatefilecapture(argv[1]); 

the function cvcreatefilecapture() takes argument name of avi file loaded , returns pointer cvcapture structure.

can explain sentence: "then returns pointer cvcapture structure"?

it allocates new cvcapture structure , returns pointer structure. don't access fields of structure pass pointer other functions work on file capture, cvqueryframe or cvsetcaptureproperty. , don't forget free resources cvreleasecapture when you're done file.

this shouldn't hard understand basic c-knowledge, respect many opencv function work way.

by way, question tagged c++, consider using c++-interface of opencv, abstracts many of things away. although there no real book it, c-interface.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -