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

(Created page with "<noinclude> {{RidgeRun Video Stabilization Library/Head|previous=API Reference/Adding New Sensors|next=API Reference/Adding Stabilization Algorithm|metakeywords=imu,stabilizer,rb5,jetson,nvidia,xilinx,amd,qualcomm}} </noinclude> {{DISPLAYTITLE:API Reference / Adding Algorithms|noerror}} == Introduction == == Integrator == == Interpolator == <noinclude> {{RidgeRun Video Stabilization Library/Foot|API Reference/Adding New Sensors|API Reference/Adding Stabilization A...")
 
Line 12: Line 12:
== Interpolator ==
== Interpolator ==


The interpolator algorithms adjust the timestamps of the IMU sensor measurements to align with the timestamps of the captured frames. This alignment is necessary because the IMU sensor time and the camera sensor time (or system internal time) may not match. Therefore, the system needs to adjust the measurements based on the frame capture time. To add a new interpolator algorithm, follow these steps:
* Define the Interpolator Algorithm class, inheriting from the IInterpolator class.
* Add the new Interpolator Algorithm to the Interpolator Interface.
=== Define the Interpolator Algorithm ===
The RidgeRun Interpolator Interface, known as IInterpolator, is an extensible class design to support various types of interpolators. To add a new interpolator to it, the user must implement a new interpolator class that derives from the IInterpolator class. This class must implement the following methods:
* Apply: applies the interpolator algorithm to the desired data based on a initial time.
* Reset: sets the initial time of the interpolator to the desired value.
==== Defining the Apply method ====
==== Defining the Reset method ====


<noinclude>
<noinclude>
{{RidgeRun Video Stabilization Library/Foot|API Reference/Adding New Sensors|API Reference/Adding Stabilization Algorithm}}
{{RidgeRun Video Stabilization Library/Foot|API Reference/Adding New Sensors|API Reference/Adding Stabilization Algorithm}}
</noinclude>
</noinclude>
102

edits