Applying echo filter on scans read from a file
The sample shows the effect of the echo filter on scans read from a file. Every time a new scan is read from the given resource file the Lua function "handleOnNewScan" is called. The next scan, passed as argument, is investigated in the following ways:
- The number of beams with non-zero distances are counted for all available echoes and the percentage is printed (see function "countNonZeroBeams").
- The input scan is filtered with the EchoFilter with option "LAST". For each beam, this copies the last echo with non-zero distance to the first echo. All other echoes are removed.
- The number and the percentage of non-zero distances are counted and printed (see function "countNonZeroBeams")
- The changes in distance values between the first echo of the original scan and the filtered scan (which has now only one echo) are shown (see function "compareScans").
Algorithm, Scan, Filtering, Sample, SICK-AppSpace