Ask Your Question

Revision history [back]

Problems with vector <dmatch>

I am trying to implement code from here:

into an Android app. I've added nonfree modules which I complied according to this tutorial:

but I'm getting errors in:

for( int i = 0; i < descriptors_object.rows; i++ ) { if( matches[i].distance < 3*min_dist ) { good_matches.push_back( matches[i]); } }

Field 'distance' could not be resolved Invalid arguments ' // for push_back

Any ideas how to fix it?