You are here: Start » AVL.NET » AVL.EstimateRealScale Method

AVL.EstimateRealScale Method

Estimate the scale for points in the Z=0 plane in a perpendicular view.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void EstimateRealScale(
	AvlNet.Matrix inCameraMatrix,
	AvlNet.Position3D inCameraPosition,
	out float outUnitsPerPixel
)

Parameters

Name Type Range Default Description
inCameraMatrixAvlNet.MatrixCamera matrix obtained from calibration.
inCameraPositionAvlNet.Position3DCamera position for which the scale is estimated.
outUnitsPerPixelfloatScale factor, or physical dimensions of 1 pixel in the world plane.

Errors

Error type Description
DomainError Invalid camera position (z=0) in EstimateRealScale.
DomainError Invalid camera matrix (must be 3x3) in EstimateRealScale.
DomainError Invalid camera matrix (Fx=0) in EstimateRealScale.

See also