MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / addMeasurement

Method addMeasurement

plugins/videobasedtracker/LED.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

processImageMethod · 0.80

Calls 2

getIdMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected