| 723 | } |
| 724 | |
| 725 | bool 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 | |
| 738 | void Frame::ComputeBoW() |
nothing calls this directly
no outgoing calls
no test coverage detected