Jump to content

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

add stabilization parameters
m (change title)
Tag: Manual revert
(add stabilization parameters)
Line 58: Line 58:


== Define the Stabilization Parameters ==  
== Define the Stabilization Parameters ==  
The stabilization parameters describe what will be the initial orientation that the algorithm should stabilize towards, and the smoothing degree desired. These parameters are extensible given the case an algorithm requires additional parameters.
<syntaxhighlight lang=c++>
struct ExampleParams : public StabilizerParams {
  /**
  * additional parameter.
  */
  double additional_ = 0;
  ExampleParams(double additional, Quaternion<double> initial_orientation,
                    double horizon_angle)
      : StabilizerParams{smoothing, initial_orientation},
        additional_{additional} {}
  /**
  * @brief Destroy the ExampleParams instance.
  */
  virtual ~ExampleParams() = default;
};
</syntaxhighlight>


<noinclude>
<noinclude>
{{RidgeRun Video Stabilization Library/Foot|API Reference/Adding Algorithms|API Reference/Adding Backends}}
{{RidgeRun Video Stabilization Library/Foot|API Reference/Adding Algorithms|API Reference/Adding Backends}}
</noinclude>
</noinclude>
29

edits

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