Ask Your Question

excelerate's profile - activity

2013-01-09 07:07:45 -0600 received badge  Nice Question (source)
2012-09-25 09:17:18 -0600 asked a question Can the Bag of Words functions be used with binary descriptors?

Basically, I have a bunch of binary descriptors, and I want to use a bag of words model to transform them into a histogram, stemming from 100 clusters. I have coded this out by hand, but my hunch is that the OpenCV implementation is likely better coded and potentially well optimized, so I'd like to see if that yields more efficient computation.

So, with the descriptors already extracted (and binary), can the bag of words functions be used to cluster/assign to build the bag of words model on binary features?

2012-09-25 09:14:54 -0600 received badge  Scholar (source)
2012-09-24 00:00:43 -0600 received badge  Student (source)
2012-09-23 13:06:34 -0600 asked a question Is it possible to get a pointer to two different frames in a video sequence at the same time with OpenCV?

You can access a specific frame in a video sequence like this:

capture.set(CV_CAP_PROP_POS_FRAMES, frame_num);
capture >> frame;

You can then access a separate frame like this:

capture.set(CV_CAP_PROP_POS_FRAMES, frame_num - 20);
capture >> frame2;

However, when you set the capture property with CV_CAP_PROP_POS_FRAMES, it actually moves the first pointer and frame and frame2 end up pointing to the same data, containing the same values.

I want a pointer to both, so I do not have to clone the data (expensive computation) but I can perform comparisons between the two frames. How can this be done with OpenCV?