Reference Manual
Chapter
5
Ruler E
Ruler API
5.6
Rectifying Measurement Values
The Ruler API has a function for
rectifying
the measurement values – that is, re-sampling
the values in order to get profiles where the range, intensity and scatter values are uni-
formly distributed along the x-axis. This is useful for example when visualizing the meas-
ured object, to keep the correct proportions of the object.
To rectify the measurement values, set the
RectifyWidth
property to the number of x
values in the resulting profiles. If set to
0
, the measurement values will not be rectified.
When rectifying, the x values in the resulting profile is first calculated from the
Rectify-
Width
property. The range, intensity or scatter value for each new point along the x-axis
is then calculated by interpolating the measurement values in the original profile surround-
ing the new x value. If there are no measurement values near the x value to interpolate for,
the interpolated value will be set to 0, which means missing data.
Please note that re-sampling the measurement values will add extra load on the CPU.
Figure 5.6 – Rectifying profiles.
Not enough
values
FOV top
FOV bottom
x x
FOV
left
FOV
right
Missing data
SICK IVP • Industrial Sensors • www.sickivp.com • All rights reserved
47