Subversion Repositories seema-scanner

Rev

Rev 47 | Rev 69 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 47 Rev 63
Line 330... Line 330...
330
 
330
 
331
        }
331
        }
332
 
332
 
333
    }
333
    }
334
 
334
 
335
    // retrieve color information
-
 
336
    int nMatches = q0Rect.size();
335
    int nMatches = q0Rect.size();
-
 
336
 
-
 
337
    if(nMatches < 1){
-
 
338
        Q.resize(0);
-
 
339
        color.resize(0);
-
 
340
 
-
 
341
        return;
-
 
342
    }
-
 
343
 
-
 
344
    // retrieve color information
337
    color.resize(nMatches);
345
    color.resize(nMatches);
338
    for(int i=0; i<nMatches; i++){
346
    for(int i=0; i<nMatches; i++){
339
 
347
 
340
        cv::Vec3b c0 = color0Rect.at<cv::Vec3b>(q0Rect[i][1], q0Rect[i][0]);
348
        cv::Vec3b c0 = color0Rect.at<cv::Vec3b>(q0Rect[i][1], q0Rect[i][0]);
341
        cv::Vec3b c1 = color1Rect.at<cv::Vec3b>(q1Rect[i][1], q1Rect[i][0]);
349
        cv::Vec3b c1 = color1Rect.at<cv::Vec3b>(q1Rect[i][1], q1Rect[i][0]);