Skip to main content
. 2022 Sep 15;22(18):6977. doi: 10.3390/s22186977
Algorithm 2 Update Nearst Point of Map Point
Input: Min_view Mproject RsemOutput: Min_viewFor kfoptimize in KFoptimize do:For min_view in Min_view do:mprojectGetProjectionPoints (Mproject);msemGetSemanticProperties(min_view);//Iterate over the semantic region of the current frame //to get the nearest pointFor rsem in Rsem do:sem_temp GetRegionSemanticProperties(rsem);If(msem==sem_temp) thenptemp=GetNearstPointofContours(mproject);pnearstUpdateNearstPoint(min_view>pnearst,ptemp);End IfEnd ForEnd ForSemanticOptimizationViaG2O(Min_view,Mproject);End For