| 38 | } |
| 39 | |
| 40 | void Led::addMeasurement(cv::Point2f loc, Brightness brightness) { |
| 41 | m_location = loc; |
| 42 | m_brightnessHistory.push_back(brightness); |
| 43 | |
| 44 | // If we don't have an identifier, then our ID is unknown. |
| 45 | // Otherwise, try and find it. |
| 46 | if (!m_identifier) { |
| 47 | m_id = -1; |
| 48 | } else { |
| 49 | m_id = m_identifier->getId(m_brightnessHistory); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | KeyPointIterator Led::nearest(KeyPointList &keypoints, |
| 54 | double threshold) const { |
no test coverage detected