Skip to content
Snippets Groups Projects
Commit 3e632ceb authored by ac 20's avatar ac 20
Browse files

matdb - occulusion tracks check at t+1 (1 based time)

parent f5fa0f13
Branches
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ int occlusionCheckCallback(void* pvnull, int argc, char** argv, char** azColName ...@@ -98,7 +98,7 @@ int occlusionCheckCallback(void* pvnull, int argc, char** argv, char** azColName
sprintf(gszSqlCmd, "update tblCells set trackID = cellID where time = %d and trackID = %s and cellID NOT in(" sprintf(gszSqlCmd, "update tblCells set trackID = cellID where time = %d and trackID = %s and cellID NOT in("
" select cellID from(select cellID, trackID, min(tblDistCC.cost) as costMin from tblCells inner join tblDistCC " " select cellID from(select cellID, trackID, min(tblDistCC.cost) as costMin from tblCells inner join tblDistCC "
" on cellID_dst = cellID where time=%d and trackID = %s group by cellID) order by costMin ASC limit 1)", " on cellID_dst = cellID where time=%d and trackID = %s group by cellID) order by costMin ASC limit 1)",
gCurrentTime, argv[0], gCurrentTime, argv[0]); gCurrentTime+1, argv[0], gCurrentTime+1, argv[0]);
rc = sqlite3_exec(gdb, gszSqlCmd, NULL, NULL, NULL); rc = sqlite3_exec(gdb, gszSqlCmd, NULL, NULL, NULL);
if (SQLITE_OK != rc) if (SQLITE_OK != rc)
fprintf(stderr, " error correcting occlusion tracks rc=%d\n", rc); fprintf(stderr, " error correcting occlusion tracks rc=%d\n", rc);
...@@ -112,7 +112,7 @@ void checkOcclusionTracks() ...@@ -112,7 +112,7 @@ void checkOcclusionTracks()
int rc; int rc;
memset(gszSqlCmd, 0, 1024); memset(gszSqlCmd, 0, 1024);
sprintf(gszSqlCmd, "select trackID from(select trackID, count(trackID) as ntrack from tblCells where time = %d group by trackID) where ntrack > 1", gCurrentTime); sprintf(gszSqlCmd, "select trackID from(select trackID, count(trackID) as ntrack from tblCells where time = %d group by trackID) where ntrack > 1", gCurrentTime+1);
rc = sqlite3_exec(gdb, gszSqlCmd, occlusionCheckCallback, &bOcclusions, NULL); rc = sqlite3_exec(gdb, gszSqlCmd, occlusionCheckCallback, &bOcclusions, NULL);
// code below can re-verify that incorrect occlusion edges have been removed // code below can re-verify that incorrect occlusion edges have been removed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment