Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of scoreLight_Advanced by
Diff: classLaserSensingTrajectory.h
- Revision:
- 18:d72935b13858
- Parent:
- 14:0fc33a3a7b4b
- Child:
- 19:228430f1350e
diff -r 356ca5690a59 -r d72935b13858 classLaserSensingTrajectory.h
--- a/classLaserSensingTrajectory.h Sat Apr 28 09:33:49 2012 +0000
+++ b/classLaserSensingTrajectory.h Sat Apr 28 12:35:21 2012 +0000
@@ -5,7 +5,7 @@
using namespace std;
// CONTRAST RATIO to compute autoThreshold:
-#define MIN_CONTRAST_RATIO 3 // This is the minimum contrast between max and min intensity necessary to "accept" a black and white zone
+#define MIN_CONTRAST_RATIO 2.3 // 3 seems good when lookup table does not work // This is the minimum contrast between max and min intensity necessary to "accept" a black and white zone
#define THRESHOLD_FACTOR 0.5//0.75 // 2/3 or 1/2 are good values
struct laserSensingPoint {
