comparison c/feature-based-tracking.cpp @ 163:cde87a07eb58

added graph structures
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 27 Sep 2011 01:38:05 -0400
parents 668710d4c773
children 76610dcf3b8d
comparison
equal deleted inserted replaced
162:61fd5aff418c 163:cde87a07eb58
139 vector<float> errors; 139 vector<float> errors;
140 Mat prevDesc, currDesc; 140 Mat prevDesc, currDesc;
141 141
142 vector<FeatureTrajectoryPtr> lostFeatures; 142 vector<FeatureTrajectoryPtr> lostFeatures;
143 vector<FeaturePointMatch> featurePointMatches; 143 vector<FeaturePointMatch> featurePointMatches;
144
145 FeatureGraph graph(params.mmConnectionDistance, params.mmSegmentationDistance);
144 146
145 int key = '?'; 147 int key = '?';
146 unsigned int savedFeatureId=0; 148 unsigned int savedFeatureId=0;
147 for (int frameNum = params.frame1; ((frameNum-params.frame1 < params.nFrames) || (params.nFrames < 0)) && !::interruptionKey(key); frameNum++) { 149 for (int frameNum = params.frame1; ((frameNum-params.frame1 < params.nFrames) || (params.nFrames < 0)) && !::interruptionKey(key); frameNum++) {
148 capture >> frame; 150 capture >> frame;