MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / PosInGrid

Method PosInGrid

src/Frame.cc:725–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723}
724
725bool Frame::PosInGrid(const cv::KeyPoint &kp, int &posX, int &posY)
726{
727 posX = round((kp.pt.x-mnMinX)*mfGridElementWidthInv);
728 posY = round((kp.pt.y-mnMinY)*mfGridElementHeightInv);
729
730 //Keypoint's coordinates are undistorted, which could cause to go out of the image
731 if(posX<0 || posX>=FRAME_GRID_COLS || posY<0 || posY>=FRAME_GRID_ROWS)
732 return false;
733
734 return true;
735}
736
737
738void Frame::ComputeBoW()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected