Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest 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 {