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

Method get_features

examples/assignment_learning_ex.cpp:123–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 void get_features (
124 const lhs_element& left,
125 const rhs_element& right,
126 feature_vector_type& feats
127 ) const
128 /*!
129 ensures
130 - #feats == PSI(left,right)
131 (i.e. This function computes a feature vector which, in some sense,
132 captures information useful for deciding if matching left to right
133 is "good").
134 !*/
135 {
136 // Let's just use the squared difference between each vector as our features.
137 // However, it should be emphasized that how to compute the features here is very
138 // problem dependent.
139 feats = squared(left - right);
140 }
141
142};
143

Callers

nothing calls this directly

Calls 1

squaredFunction · 0.85

Tested by

no test coverage detected