GetParallax

nn::camera::CTR::GetParallax Function

Syntax

f32 GetParallax(
     const StereoCameraCalibrationData & cal,
     f32 distance
);

Parameters

Name Description
in cal Specifies the calibration data.
in distance Specifies the distance from the stereo camera. This is measured in meters.

Return Values

Returns the parallax at the location that is distance apart from 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 at a specific distance from the stereo camera.

It uses the angles of view information stored in the nn::camera::CTR::StereoCameraCalibrationData structure to calculate the parallax at distance away from the camera. There is a slight level of error in the parallax calculated by this function, due to errors in the angles of view information.

Revision History

2011/03/22
Initial version.

CONFIDENTIAL