Function mola::vision::huberWeight

Function Documentation

inline float mola::vision::huberWeight(float residual, float delta)

Huber robust kernel. rho(r) = r² / 2 if |r| ≤ delta delta·|r| - δ²/2 if |r| > delta Returns the weight w such that the reweighted squared cost = w·r².