|
|
# Laser Tracking
|
|
|
|
|
|
Laser tracking in the picture is done by processing row, finding the pixel with the highest intensity, fitting known approximate distribution shape and finding its maximum. Thus, we have sub-pixel precised position of the laser.
|
|
|
|
|
|
---
|
|
|
### Intensity picture
|
|
|
The image with the laser path is converted to the grayscale image with the highest proportion to a Red channel. This image is called an intensity picture.
|
|
|
|
|
|
### Pixel intensity around laser
|
|
|
|
|
|

|
|
|
[//]: # (  )
|
|
|
|
|
|
## Pixel maximum
|
|
|
|
|
|
The laser path has slightly higher intensity than anything around. The laser position is given as a pixel with maximal intensity in some direction (i.e., row/column).
|
|
|
The laser path has slightly higher intensity than anything around. The laser position is given as a pixel with maximal intensity in some direction (i.e., row/column). The laser path tracking direction is the direction of picture rows. The cumulative mean function is used, when multiple maximal values are present in a single direction:
|
|
|
|
|
|
A laser light has a normal distribution around its maximum. This assumption is used to refine laser position to sub-pixel precision. The neighborhood around maximum is chosen, and intensities are logarithmized. These logarithms now describe a parabola. Finally, the parabola local maximum is a place with maximal intensity in our specified direction.
|
|
|
<img src="http://mathurl.com/jdfae4x.png" />
|
|
|
|
|
|
|
|
|
[//]# (For the pixel-precise maximum index we just call maximal index find for array witch returns only the first index. After that, we check if maximum is larger then selected noise level and if it is not we will start processing next row. Actually, there can be more pixels with the same maximal value following first one. So we use iterative mean to calculate the middle of those pixels.)
|
|
|
|
|
|
<img src="http://mathurl.com/jdfae4x.png" />
|
|
|
A laser light has a normal distribution around its maximum. This assumption is used to refine laser position to sub-pixel precision. The neighborhood around maximum is chosen, and intensities are logarithmized. These logarithms now describe a parabola. Finally, the parabola local maximum is a place with maximal intensity in our specified direction. The global maximum of the parabola is:
|
|
|
|
|
|
<img src="http://mathurl.com/hpbxpbz.png" />
|
|
|
|
|
|
This allows us to find the laser position with a sub-pixel precision.
|
|
|
|
|
|
[//]: # (For the pixel-precise maximum index we just call maximal index find for the array which returns only the first index. After that, we check if the maximum is larger then selected noise level and if it is not we will start processing next row. Actually, there can be more pixels with the same maximal value following first one. So we use iterative mean to calculate the middle of those pixels.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|