Back to Adaptive Vision Library website
You are here: Start » Function Reference » Camera Calibration » EstimateRealScale
EstimateRealScale
Estimate the scale for points in the Z=0 plane in a perpendicular view.
Syntax
C++
C#
void avl::EstimateRealScale ( const avl::Matrix& inCameraMatrix, const avl::Position3D& inCameraPosition, atl::real& outUnitsPerPixel )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inCameraMatrix | const Matrix& | Camera matrix obtained from calibration. | |
![]() |
inCameraPosition | const Position3D& | Camera position for which the scale is estimated. | |
![]() |
outUnitsPerPixel | real& | Scale 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. |


