| 678 | } |
| 679 | |
| 680 | void tracking_module::apply_landmark_replace() |
| 681 | { |
| 682 | for (unsigned int idx = 0; idx < last_frm_.num_keypts_; ++idx) |
| 683 | { |
| 684 | auto lm = last_frm_.landmarks_.at(idx); |
| 685 | if (!lm) |
| 686 | { |
| 687 | continue; |
| 688 | } |
| 689 | |
| 690 | auto replaced_lm = lm->get_replaced(); |
| 691 | if (replaced_lm) |
| 692 | { |
| 693 | last_frm_.landmarks_.at(idx) = replaced_lm; |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | if (map_db_->_b_use_line_tracking) |
| 698 | { |
| 699 | apply_landmark_replace_line(); |
| 700 | } |
| 701 | } |
| 702 | |
| 703 | // FW: |
| 704 | void tracking_module::apply_landmark_replace_line() |
nothing calls this directly
no test coverage detected