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

Function location

dlib/image_processing/shape_predictor.h:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 // ------------------------------------------------------------------------------------
104
105 inline vector<float,2> location (
106 const matrix<float,0,1>& shape,
107 unsigned long idx
108 )
109 /*!
110 requires
111 - idx < shape.size()/2
112 - shape.size()%2 == 0
113 ensures
114 - returns the idx-th point from the shape vector.
115 !*/
116 {
117 return vector<float,2>(shape(idx*2), shape(idx*2+1));
118 }
119
120 // ------------------------------------------------------------------------------------
121

Callers 5

nearest_shape_pointFunction · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected