nn::camera::CTR::GetParallaxOnChart Function

Syntax

f32 GetParallaxOnChart(
     const StereoCameraCalibrationData & cal
);

Parameters

Name Description
in cal Specifies the calibration data.

Return Values

Returns the parallax in the measurement chart for a VGA image. The return value represents the translation of the left camera image based on the right camera image. This is measured in pixels.

Description

Calculates the parallax in the measurement chart when the stereo cameras' calibration data is measured.

In addition to the horizontal image shift caused by errors in the left and right camera placement, the translationX member variable of the nn::camera::CTR::StereoCameraCalibrationData structure includes the parallax caused by the separation of the left and right cameras.

By subtracting this function's return value from the translationX member variable, you get the horizontal shift in the measurement chart caused by camera placement errors.

Revision History

2010/05/01
Initial version.

CONFIDENTIAL