Remove direct access to TrackPoint::qual()
For easier maintaining/changing the thresholds for the TrackPoint quality, the quality should not accessed directly. Otherwise we need to be extra careful if we change one of our thresholds to change it in every comparison, e.g., each occurrence of if (tp.qual()>80
needed to be changed.
Proposed solution:
- Make each threshold a named constant
- Define functions which cover all the needed comparison of the quality, e.g.,
isDetection
-
isBestDetection
(qual == 100, Contour or color if only color) -
isMovedDetection
(qual == 95? detektion which had been moved, as only color + structure -
compareQual (TP 1, TP2)
, to determine which Point is used ininsertAtFrame
-
qualBiggerThan
(repeat below quality) - ... (not complete list!)
Edited by Schrödter, Tobias