diff --git a/ov_core/src/track/TrackBase.cpp b/ov_core/src/track/TrackBase.cpp index 57fc68e86..8379a22da 100644 --- a/ov_core/src/track/TrackBase.cpp +++ b/ov_core/src/track/TrackBase.cpp @@ -52,13 +52,14 @@ void TrackBase::display_active(cv::Mat &img_out, int r1, int g1, int b1, int r2, if(image_new) img_out = cv::Mat(max_height,(int)img_last.size()*max_width,CV_8UC3,cv::Scalar(0,0,0)); // Loop through each image, and draw + int index_cam = 0; for(auto const& pair : img_last) { // Lock this image std::unique_lock lck(mtx_feeds.at(pair.first)); // select the subset of the image cv::Mat img_temp; if(image_new) cv::cvtColor(img_last[pair.first], img_temp, CV_GRAY2RGB); - else img_temp = img_out(cv::Rect(max_width*pair.first,0,max_width,max_height)); + else img_temp = img_out(cv::Rect(max_width*index_cam,0,max_width,max_height)); // draw, loop through all keypoints for(size_t i=0; i lck(mtx_feeds.at(pair.first)); // select the subset of the image cv::Mat img_temp; if(image_new) cv::cvtColor(img_last[pair.first], img_temp, CV_GRAY2RGB); - else img_temp = img_out(cv::Rect(max_width*pair.first,0,max_width,max_height)); + else img_temp = img_out(cv::Rect(max_width*index_cam,0,max_width,max_height)); // draw, loop through all keypoints for(size_t i=0; i