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

Function get_interocular_distances

examples/train_shape_predictor_ex.cpp:182–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182std::vector<std::vector<double> > get_interocular_distances (
183 const std::vector<std::vector<full_object_detection> >& objects
184)
185{
186 std::vector<std::vector<double> > temp(objects.size());
187 for (unsigned long i = 0; i < objects.size(); ++i)
188 {
189 for (unsigned long j = 0; j < objects[i].size(); ++j)
190 {
191 temp[i].push_back(interocular_distance(objects[i][j]));
192 }
193 }
194 return temp;
195}
196
197// ----------------------------------------------------------------------------------------
198

Callers 1

mainFunction · 0.70

Calls 3

interocular_distanceFunction · 0.70
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected