MCPcopy Create free account
hub / github.com/davisking/dlib / sample_detection_from_sensor

Function sample_detection_from_sensor

dlib/test/learning_to_track.cpp:116–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115 template <typename detection>
116 detection sample_detection_from_sensor(long object_id)
117 {
118 DLIB_CASSERT(object_id < num_objects,
119 "You can't ask to sample a detection from an object that doesn't exist.");
120 detection temp;
121 // Set the measurements equal to the object's true property values plus a little bit of
122 // noise.
123 temp.measurements = object_properties[object_id] + randm(num_properties,1,rnd)*0.1;
124 return temp;
125 }
126
127// ----------------------------------------------------------------------------------------
128

Callers

nothing calls this directly

Calls 1

randmFunction · 0.70

Tested by

no test coverage detected