Skip to content

Commit

Permalink
Frame class updated, ConfigReader class updated, Documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ConstantRobotics committed Mar 25, 2024
1 parent fcb4b87 commit ff4bebf
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 137 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/ConfigReader
2 changes: 1 addition & 1 deletion 3rdparty/Frame
211 changes: 90 additions & 121 deletions README.md

Large diffs are not rendered by default.

Binary file not shown.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.13)
## LIBRARY-PROJECT
## name and version
################################################################################
project(VStabiliser VERSION 2.4.1 LANGUAGES CXX)
project(VStabiliser VERSION 2.4.3 LANGUAGES CXX)



Expand Down
22 changes: 11 additions & 11 deletions src/VStabiliser.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class VStabiliserParams
public:
/// Scale factor. Value depends on implementation. Default:
/// If 1 the library will process original frame size, if 2
/// the library will scale original frane size by 2, if 3 - by 3.
/// the library will scale original frame size by 2, if 3 - by 3.
int scaleFactor{1};
/// Maximum horizontal image shift in pixels per video frame. If image shift
/// bigger than this limit the library should compensate only xOffsetLimit
Expand All @@ -64,21 +64,21 @@ class VStabiliserParams
/// compensate only aOffsetLimit angle.
float aOffsetLimit{10.0f};
/// Horizontal smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
/// picture drift completely without considering constant motion).
float xFilterCoeff{0.9f};
/// Vertical smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
/// picture drift completely without considering constant motion).
float yFilterCoeff{0.9f};
/// Rotational smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
Expand Down Expand Up @@ -107,8 +107,8 @@ class VStabiliserParams
/// should add this offset to next processed video frame.
float instantAOffset{0.0f};
/// Algorithm type. Default values:
/// 0 - 2D type 1. Stabilisation only on horizonatal and vertical.
/// 1 - 2D type 2. Stabilisation only on horizonatal and vertical.
/// 0 - 2D type 1. Stabilisation only on horizontal and vertical.
/// 1 - 2D type 2. Stabilisation only on horizontal and vertical.
/// 2 - 3D. Stabilisation on horizontal and vertical + rotation.
/// Particular implementation can have unique values.
int type{2};
Expand Down Expand Up @@ -192,21 +192,21 @@ enum class VStabiliserParam
/// compensate only A_OFFSET_LIMIT angle.
A_OFFSET_LIMIT,
/// Horizontal smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
/// picture drift completely without considering constant motion).
X_FILTER_COEFF,
/// Vertical smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
/// picture drift completely without considering constant motion).
Y_FILTER_COEFF,
/// Rotational smoothing coefficient of constant camera movement. The range
/// of values depends on the specific implementation of the stibilisation
/// of values depends on the specific implementation of the stabilisation
/// algorithm. Default values [0-1]: 0 - the library will not compensate for
/// constant camera motion, video will not be stabilized, 1 - no smoothing
/// of constant camera motion (the library will compensate for the current
Expand Down Expand Up @@ -240,8 +240,8 @@ enum class VStabiliserParam
/// should add this offset to next processed video frame.
INSTANT_A_OFFSET,
/// Algorithm type. Default values:
/// 0 - 2D type 1. Stabilisation only on horizonatal and vertical.
/// 1 - 2D type 2. Stabilisation only on horizonatal and vertical.
/// 0 - 2D type 1. Stabilisation only on horizontal and vertical.
/// 1 - 2D type 2. Stabilisation only on horizontal and vertical.
/// 2 - 3D. Stabilisation on horizontal and vertical + rotation.
/// Particular implementation can have unique values.
TYPE,
Expand Down
4 changes: 2 additions & 2 deletions src/VStabiliserVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

#define VSTABILISER_MAJOR_VERSION 2
#define VSTABILISER_MINOR_VERSION 4
#define VSTABILISER_PATCH_VERSION 1
#define VSTABILISER_PATCH_VERSION 3

#define VSTABILISER_VERSION "2.4.1"
#define VSTABILISER_VERSION "2.4.3"

0 comments on commit ff4bebf

Please sign in to comment.