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 atl::real& inImageDistance, atl::real inResolution, atl::real& outWorldDistance )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImageDistance | const real& | |||
![]() |
inResolution | real | 0.0 - ![]() |
1.0f | Number of real-world units per pixel, usually mm/px |
![]() |
outWorldDistance | real& |
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.



