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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -