Jump to content

RidgeRun Video Stabilization Library/API Reference/Adding Algorithms: Difference between revisions

Line 122: Line 122:
* softgyro: This is the input data containing a vector of orientation values (Quaternions) along with their corresponding timestamps (in microseconds). It is used by the interpolation algorithm.
* softgyro: This is the input data containing a vector of orientation values (Quaternions) along with their corresponding timestamps (in microseconds). It is used by the interpolation algorithm.
* interpolated: This contains a vector of interpolated orientation values with their corresponding interpolation timestamps (in microseconds).
* interpolated: This contains a vector of interpolated orientation values with their corresponding interpolation timestamps (in microseconds).
* clean: This avoids cleaning or modifying the softgyro vector.


<syntaxhighlight lang=c++>
<syntaxhighlight lang=c++>
RuntimeError ExampleInterpolator::Apply(
RuntimeError ExampleInterpolator::Apply(
     std::vector<std::pair<Quaternion<double>, uint64_t>>&interpolated,
     std::vector<std::pair<Quaternion<double>, uint64_t>>&interpolated,
     std::vector<std::pair<Quaternion<double>, uint64_t>>& softgyro) {
     std::vector<std::pair<Quaternion<double>, uint64_t>>& softgyro,
    const bool clean) {
   RuntimeError ret{};
   RuntimeError ret{};


1,654

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.