| commit | 6e8bd501b25dc308df7b1a5eed16edfd8442002e | [log] [tgz] |
|---|---|---|
| author | Keir Mierle <mierle@gmail.com> | Thu May 23 01:49:08 2013 -0700 |
| committer | Sameer Agarwal <sameeragarwal@google.com> | Tue Jul 09 06:28:55 2013 +0000 |
| tree | 30de06d7d862afa928609b0ff3ff07f6831b3c3c | |
| parent | 1ab7fde626c3d3ac02664183f21fedd397785bea [diff] |
Extend the C API to support loss functions This extends the C API to support loss functions. Both user-supplied cost functions as well as the stock Ceres cost functions (Cauchy, Huber, etc) are supported. In addition, this adds a simple unit test for the C API. Supporting loss functions required changing the signature of the ceres_add_residual_block() function to also take a thunk for the loss function. Change-Id: Iefa58cf709adbb8f24588e5eb6aed9aef46b6d73