* Sets the test pattern * @param x1 x1 coordinates of pairs * @param y1 y1 coordinates of pairs * @param x2 x2 coordinates of pairs * @param y2 y2 coordinates of pairs */
| 130 | * @param y2 y2 coordinates of pairs |
| 131 | */ |
| 132 | inline void importPairs(const std::vector<int>& x1, |
| 133 | const std::vector<int>& y1, |
| 134 | const std::vector<int>& x2, |
| 135 | const std::vector<int>& y2) { |
| 136 | m_x1 = x1; |
| 137 | m_y1 = y1; |
| 138 | m_x2 = x2; |
| 139 | m_y2 = y2; |
| 140 | m_bit_length = x1.size(); |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Returns the Hamming distance between two descriptors |