Fix visualization thread

This commit splits some operations into different threads.
Some threads compute the visualization preprocessing for the
live, detection, top view and disparity visualization.
Only one thread has the role to display the different views.
This commit is contained in:
Davide Sapienza
2019-09-09 14:40:43 +02:00
parent 5bbb3f3480
commit b1a3620061
2 changed files with 570 additions and 148 deletions
+2 -2
View File
@@ -215,14 +215,14 @@ void addRoadUserfromTracker(const std::vector<Tracker> &trackers, Message *m, ge
int pix_x, pix_y;
coord2pixel(lat, lon, pix_x, pix_y, adfGeoTransform);
std::cout<<maskOrient.at<cv::Vec3b>(pix_y,pix_x)<<std::endl;
// std::cout<<maskOrient.at<cv::Vec3b>(pix_y,pix_x)<<std::endl;
uint8_t maskOrientPixel = maskOrient.at<cv::Vec3b>(pix_y,pix_x)[0];
uint8_t orientation;
if(maskOrientPixel != 0)
{
orientation = maskOrientPixel;
std::cout<<"orientation given by the mask "<< int(orientation)<<std::endl;
// std::cout<<"orientation given by the mask "<< int(orientation)<<std::endl;
}
else
{