Back to Adaptive Vision Library website
You are here: Start » Function Reference » World Coordinates » DistanceToWorldCoordinates
DistanceToWorldCoordinates
Calculates a distance in real-world units.
Syntax
C++
C#
void avl::DistanceToWorldCoordinates ( const float& inImageDistance, float inResolution, float& outWorldDistance )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImageDistance | const float& | ||||
inResolution | float | 0.0 - | 1.0f | Number of real-world units per pixel, usually mm/px | |
outWorldDistance | float& |
Hints
- Pass a distance represented in pixels to the inImageDistance input. This distance will be translated to real-world units.
- Set the inResolution input to a value specifying how many millimeters there are per one pixel.