Back to Adaptive Vision Library website
You are here: Start » Function Reference » World Coordinates » PixelToRealDistance
PixelToRealDistance
Calculates a distance in real-world units.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::PixelToRealDistance ( const float inPixelDistance, const float inResolution, const float inBias, float& outRealDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPixelDistance | const float | Distance between two points in an image | |||
inResolution | const float | 0.0 - | 1.0f | Number of real-world units per pixel, usually mm/px | |
inBias | const float | 0.0f | Compensation for systematic error in measurements (in real-world units) | ||
outRealDistance | float& | Distance between two points in real-world units |