gxytcrc / semantic-histogram-based-global-localization

Semantic graph based global localization for multi-robot map fusion.
MIT License
114 stars 21 forks source link

How to Use the SYNTHIA Dataset for Testing? #10

Open wf-hahaha opened 6 months ago

wf-hahaha commented 6 months ago

How to Utilize the SYNTHIA Dataset for Testing. For instance, what are the camera parameters (fx, fy, cx, cy), and what are the label_gray[] values. camera[0] = 512; //fx camera[1] = 512; //fy camera[2] = 512; //cx camera[3] = 288;//cy

` //generate the correspondent rgb value of all labels in the segmentation image Mat Label = (cv::Mat_(11, 3)<< 175, 6, 140, 65, 54, 217, 156, 198, 23, 184, 145, 182, 211, 80, 208, 232, 250, 80, 234, 20, 250, 99, 242, 104, 142, 1, 246, 81, 13, 36, 112, 105, 191);

//Obtain the label number
vector<uchar> label_gray(11);
label_gray[0] = 72; label_gray[1] = 76; label_gray[2] = 165; label_gray[3] = 161; label_gray[4] = 134;
label_gray[5] = 225; label_gray[6] = 110; label_gray[7] = 184; label_gray[8] = 71; label_gray[9] = 36;
label_gray[10] = 117;`