Generate Correction Matrix and Scale

Description

This operator calculates the relative transformation matrix and scale ratio by comparing the currently input pose matrix with the historical pose matrix.

Overview

Calculates the correction transformation matrix and scaling factor by comparing current and historical poses, used for camera drift compensation.

Scenarios

Transformation matrix calculation, scale ratio calculation.

Inputs and Outputs

Inputs

Current size: A feature size in the current measurement state, used to calculate the scale relationship. For example, the distance between feature points on a calibration board.

Current pose matrix: The 4x4 homogeneous pose matrix of the target (such as a calibration board) relative to the camera in the current measurement state.

Outputs

Ratio: The accumulated scaling ratio. It represents the multiplication factor required to scale the current "size" to the "size" at the first measurement.

Rotation Matrix: The accumulated 4x4 homogeneous transformation matrix. It represents the left-multiplication matrix required to transform the current "pose" to the "pose" at the first measurement.

Parameters

Historical Poses

Description

A list storing historical pose matrices, where each element is a 4x4 matrix.

Tuning Instructions

Usually automatically maintained by the operator; generally does not need to be set manually.

Parameter Range

Default: []

Historical Sizes

Description

A list storing historical sizes.

Tuning Instructions

Automatically maintained by the operator. Initial values can be preset during debugging to test scale calculation.

Parameter Range

Default: []

Historical Center Points

Description

A list storing historical center points.

Tuning Instructions

Not currently used; keep the default value.

Parameter Range

Default: []

Historical Scale Ratios

Description

A list storing historical scale ratios.

Tuning Instructions

Automatically maintained by the operator. Initial ratios can be preset during debugging to test the cumulative effect.

Parameter Range

Default: []

Historical Rotation Matrices

Description

A list storing historical transformation matrices.

Tuning Instructions

Automatically maintained by the operator. Initial transformation matrices can be preset during debugging to simulate continuous operation.

Parameter Range

Default: []

Ratio

Description

The current accumulated scale ratio.

Tuning Instructions

The default value is automatically calculated by the operator and usually does not need to be set manually. An initial value (e.g., 1.0) can be set during debugging to test the ratio accumulation effect.

Parameter Range

Parameter Range

Values/Range: [0.0, 10]

Rotation Matrix

Description

The current accumulated transformation matrix.

Tuning Instructions

The default value is automatically calculated by the operator and usually does not need to be set manually. An initial 4x4 identity matrix can be set during debugging to test transformation accumulation.

Clear Data

Description

Whether to clear all historical data (poses, sizes, ratios, transformation matrices).

Tuning Instructions

Enabling Clear Data resets the historical state.

Parameter Range

Default: False