Parameters.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. using BBIWARG.Utility;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing;
  5. namespace BBIWARG
  6. {
  7. /// <summary>
  8. /// type of input source
  9. /// </summary>
  10. public enum InputType
  11. {
  12. Camera,
  13. Movie
  14. }
  15. /// <summary>
  16. /// Defines all parameters used in the whole program.
  17. /// </summary>
  18. internal static class Parameters
  19. {
  20. #region console
  21. /// <summary>
  22. /// height of the console in mono space characters
  23. /// </summary>
  24. public static readonly int ConsoleHeight = 30;
  25. /// <summary>
  26. /// with of the console in mono space characters
  27. /// </summary>
  28. public static readonly int ConsoleWidth = 90;
  29. #endregion console
  30. #region input
  31. /// <summary>
  32. /// path to the movie file used as input source
  33. /// </summary>
  34. public static readonly String InputMoviePath = "..\\..\\videos\\touch\\4.skv";
  35. /// <summary>
  36. /// the input source type
  37. /// </summary>
  38. public static readonly InputType InputSource = InputType.Camera;
  39. #endregion input
  40. #region Logger
  41. /// <summary>
  42. /// bit field which specifies which subjects should be logged
  43. /// </summary>
  44. public static readonly LogSubject LoggerEnabledSubjects = LogSubject.None;
  45. /// <summary>
  46. /// true iff the timer output should be shown
  47. /// </summary>
  48. public static readonly bool LoggerTimerOutputEnabled = false;
  49. #endregion Logger
  50. #region DebugWindow
  51. /// <summary>
  52. /// true iff the debug window is enabled
  53. /// </summary>
  54. public static readonly bool DebugWindowEnabled = true;
  55. /// <summary>
  56. /// the title of the debug window
  57. /// </summary>
  58. public static readonly String DebugWindowTitle = "BBIWARG - DebugOutput";
  59. /// <summary>
  60. /// the update interval for the debug window
  61. /// </summary>
  62. public static readonly int DebugWindowUpdateIntervall = 1000 / 30; // 30fps
  63. #endregion DebugWindow
  64. #region GlassesWindow
  65. /// <summary>
  66. /// true iff the glasses window is enabled
  67. /// </summary>
  68. public static readonly bool GlassesWindowEnabled = false;
  69. /// <summary>
  70. /// number of calibration points
  71. /// </summary>
  72. public static readonly int GlassesWindowNumCalibrationPoints = 20;
  73. /// <summary>
  74. /// the title of the debug window
  75. /// </summary>
  76. public static readonly String GlassesWindowTitle = "BBIWARG - GlassesOutput";
  77. /// <summary>
  78. /// the update interval for the glasses window
  79. /// </summary>
  80. public static readonly int GlassesWindowUpdateInterval = 1000 / 30; // 30fps
  81. #endregion GlassesWindow
  82. #region tuio
  83. /// <summary>
  84. /// the default ip address of the tuio server
  85. /// </summary>
  86. public static readonly String TuioDefaultIP = "127.0.0.1";
  87. /// <summary>
  88. /// the default port of the tuio server
  89. /// </summary>
  90. public static readonly Int16 TuioDefaultPort = 3336;
  91. /// <summary>
  92. /// true iff the tuio server is enabled
  93. /// </summary>
  94. public static readonly bool TuioEnabledByDefault = true;
  95. #endregion tuio
  96. #region ConfidenceImage
  97. /// <summary>
  98. /// the minimum confidence threshold for pixel values to be considered correct
  99. /// </summary>
  100. public static readonly int ConfidenceImageMinThreshold = 500;
  101. #endregion ConfidenceImage
  102. #region DepthImage
  103. /// <summary>
  104. /// the depth range which is considered important (in mm) (must be smaller than 255)
  105. /// </summary>
  106. public static readonly int DepthImageDepthRange = 200;
  107. /// <summary>
  108. /// the size of the median filter used to filter the depth image
  109. /// </summary>
  110. public static readonly int DepthImageMedianSize = 5;
  111. #endregion DepthImage
  112. #region EdgeImage
  113. /// <summary>
  114. /// linking threshold for the canny edge detector used to detect edges in the depth image
  115. /// </summary>
  116. public static readonly int EdgeImageCannyLinkingThreshold = 60;
  117. /// <summary>
  118. /// filter size for the canny edge detector used to detect edges in the depth image
  119. /// </summary>
  120. public static readonly int EdgeImageCannySize = 3;
  121. /// <summary>
  122. /// start threshold for the canny edge detector used to detect edges in the depth image
  123. /// </summary>
  124. public static readonly int EdgeImageCannyStartThreshold = 80;
  125. /// <summary>
  126. /// number of dilation iterations to generate the rough edge image from the edge image
  127. /// </summary>
  128. public static readonly int EdgeImageRoughNumDilationIterations = 1;
  129. #endregion EdgeImage
  130. #region general tracking
  131. /// <summary>
  132. /// if a tracked object moves this relative amount it will have a similarity of 0 to itself at the previous position
  133. /// </summary>
  134. public static readonly float TrackerMaxRelativeMove = 0.25f;
  135. #endregion general tracking
  136. #region finger detection
  137. /// <summary>
  138. /// the contour margin around the finger
  139. /// </summary>
  140. public static readonly int FingerContourMargin = 4;
  141. /// <summary>
  142. /// the maximum depth difference between the finger and a point beside the finger
  143. /// </summary>
  144. public static readonly int FingerMaxCrippleDifference = 20;
  145. /// <summary>
  146. /// the number of missed slices until the trail expansion stops
  147. /// </summary>
  148. public static readonly int FingerMaxGapCounter = 3;
  149. /// <summary>
  150. /// the maximum slice length difference of two consecutive slices (used to drop outliers)
  151. /// </summary>
  152. public static readonly int FingerMaxSliceLengthDifferencePerStep = 5;
  153. /// <summary>
  154. /// maximum finger slice length (in pixels)
  155. /// </summary>
  156. public static readonly int FingerMaxWidth2D = 30;
  157. /// <summary>
  158. /// maximum finger slice length (in mm)
  159. /// </summary>
  160. public static readonly float FingerMaxWidth3D = 35f;
  161. /// <summary>
  162. /// the minimum number of slices a finger must have
  163. /// </summary>
  164. public static readonly int FingerMinNumSlices = 20;
  165. // TODO remove and replace with 3Dwidth
  166. /// <summary>
  167. /// minimum finger slice length (in pixels)
  168. /// </summary>
  169. public static readonly int FingerMinWidth2D = 2;
  170. /// <summary>
  171. /// the number of slices used to calculate the start and end directions
  172. /// </summary>
  173. public static readonly int FingerNumSlicesForRelativeDirection = 5;
  174. /// <summary>
  175. /// the distance of a point to be considered beside the finger (in pixels)
  176. /// </summary>
  177. public static readonly int FingerOutMargin = 6;
  178. /// <summary>
  179. /// the number of slices that are removed when the finger expansion starts in opposite direction (because initial slices don't have the correct direction)
  180. /// </summary>
  181. public static readonly int FingerRemoveNumSlicesForCorrection = 10;
  182. #endregion finger detection
  183. #region finger tracking
  184. /// <summary>
  185. /// xx entry for the measurement noise covariance matrix for the kalman filter used to smooth the finger hand and tip points
  186. /// </summary>
  187. public static readonly float FingermXX = 0.000005f;
  188. /// <summary>
  189. /// xy and yx entry for the measurement noise covariance matrix for the kalman filter used to smooth the finger hand and tip points
  190. /// </summary>
  191. public static readonly float FingermXY = 0.0f;
  192. /// <summary>
  193. /// yy entry for the measurement noise covariance matrix for the kalman filter used to smooth the finger hand and tip points
  194. /// </summary>
  195. public static readonly float FingermYY = 0.000005f;
  196. /// <summary>
  197. /// if the hand point of a finger moves this relative amount it will have a similarity of 0 to itself at the previous position
  198. /// </summary>
  199. public static readonly float FingerTrackerMaxHandPointRelativeMove = TrackerMaxRelativeMove;
  200. /// <summary>
  201. /// if the tip point of a finger moves this relative amount it will have a similarity of 0 to itself at the previous position
  202. /// </summary>
  203. public static readonly float FingerTrackerMaxTipPointRelativeMove = TrackerMaxRelativeMove;
  204. /// <summary>
  205. /// number of finger slice directions used to compute the mean finger direction
  206. /// </summary>
  207. public static readonly int FingerTrackerNumDirectionsForMeanDirection = 10;
  208. /// <summary>
  209. /// number of frames a finger needs to be detected before it is tracked
  210. /// </summary>
  211. public static readonly int FingerTrackerNumFramesDetectedUntilTracked = 5;
  212. /// <summary>
  213. /// number of frames a finger needs to be lost before it is deleted
  214. /// </summary>
  215. public static readonly int FingerTrackerNumFramesLostUntilDeleted = 10;
  216. #endregion finger tracking
  217. #region hand detection
  218. /// <summary>
  219. /// maximum depth difference below which two sections of a hand which are separated by a finger are considered to belong to the same hand
  220. /// </summary>
  221. public static readonly int HandExtendMaxDifference = 40;
  222. /// <summary>
  223. /// maximum size of a hand extension mask relative to the whole image
  224. /// </summary>
  225. public static readonly float HandExtensionMaxRelativeSize = 0.5f * HandMaxSize;
  226. /// <summary>
  227. /// maximum downwards depth difference between a pixel and a neighboring pixel belonging to the same hand
  228. /// </summary>
  229. public static readonly int HandFloodFillDownDiff = 2;
  230. /// <summary>
  231. /// maximum upwards depth difference between a pixel and a neighboring pixel belonging to the same hand
  232. /// </summary>
  233. public static readonly int HandFloodFillUpDiff = 2;
  234. /// <summary>
  235. /// maximum size of a hand relative to the whole image
  236. /// </summary>
  237. public static readonly float HandMaxSize = 0.6f;
  238. /// <summary>
  239. /// minimum size of a hand relative to the whole image
  240. /// </summary>
  241. public static readonly float HandMinSize = 0.01f;
  242. /// <summary>
  243. /// number of colors used to draw hands
  244. /// </summary>
  245. public static readonly int HandNumColors = 3;
  246. /// <summary>
  247. /// the maximum distance of the thumb tip point to the outer short point of a convexity defect for possible thumb defects
  248. /// </summary>
  249. public static readonly float HandThumbDefectMaxDistanceToThumb = Parameters.FingerMaxWidth2D;
  250. /// <summary>
  251. /// the maximum ratio of the length from the depth point to the outer short point to
  252. /// the length from the depth point to the outer long point of a convexity defect for possible thumb defects
  253. /// </summary>
  254. public static readonly float HandThumbDefectMaxShortLongLengthRatio = 0.7f;
  255. /// <summary>
  256. /// the maximum ratio of the thumb length to the length from the depth point to the outer short point of a convexity defect for possible thumb defects
  257. /// </summary>
  258. public static readonly float HandThumbDefectMaxThumbShortLengthRatio = 1.1f;
  259. /// <summary>
  260. /// the minimum ratio of the length from the depth point to the outer short point to
  261. /// the length from the depth point to the outer long point of a convexity defect for possible thumb defects
  262. /// </summary>
  263. public static readonly float HandThumbDefectMinShortLongLengthRatio = 0.3f;
  264. /// <summary>
  265. /// the minimum ratio of the thumb length to the length from the depth point to the outer short point of a convexity defect for possible thumb defects
  266. /// </summary>
  267. public static readonly float HandThumbDefectMinThumbShortLengthRatio = 0.75f;
  268. #endregion hand detection
  269. #region hand tracker
  270. /// <summary>
  271. /// xx entry for the measurement noise covariance matrix for the kalman filter used to smooth the hand centroid
  272. /// </summary>
  273. public static readonly float HandmXX = 0.0005f;
  274. /// <summary>
  275. /// xy and yx entry for the measurement noise covariance matrix for the kalman filter used to smooth the hand centroid
  276. /// </summary>
  277. public static readonly float HandmXY = 0.0f;
  278. /// <summary>
  279. /// yy entry for the measurement noise covariance matrix for the kalman filter used to smooth the hand centroid
  280. /// </summary>
  281. public static readonly float HandmYY = 0.0005f;
  282. /// <summary>
  283. /// if the centroid of a hand moves this relative amount it will have a similarity of 0 to itself at the previous position
  284. /// </summary>
  285. public static readonly float HandTrackerMaxCentroidRelativeMove = TrackerMaxRelativeMove;
  286. /// <summary>
  287. /// number of frames a hand needs to be detected before it is tracked
  288. /// </summary>
  289. public static readonly int HandTrackerNumFramesDetectedUntilTracked = 5;
  290. /// <summary>
  291. /// number of frames a hand needs to be lost before it is deleted
  292. /// </summary>
  293. public static readonly int HandTrackerNumFramesLostUntilDeleted = 5;
  294. #endregion hand tracker
  295. #region palm detection
  296. /// <summary>
  297. /// relative tolerance which specifies when a point is considered to be in the palm grid
  298. /// </summary>
  299. public static readonly float PalmInsideTolerance = 0.1f;
  300. /// <summary>
  301. /// number of positions along the forefinger used as starting points to detect the palm width
  302. /// </summary>
  303. public static readonly int PalmNumPositionsForPalmWidth = 5;
  304. #endregion palm detection
  305. #region palm tracker
  306. /// <summary>
  307. /// xx entry for the measurement noise covariance matrix for the kalman filter used to smooth the palm grid points
  308. /// </summary>
  309. public static readonly float PalmmXX = 0.00005f;
  310. /// <summary>
  311. /// xy and yx entry for the measurement noise covariance matrix for the kalman filter used to smooth the palm grid points
  312. /// </summary>
  313. public static readonly float PalmmXY = 0.0f;
  314. /// <summary>
  315. /// yy entry for the measurement noise covariance matrix for the kalman filter used to smooth the palm grid points
  316. /// </summary>
  317. public static readonly float PalmmYY = 0.00005f;
  318. /// <summary>
  319. /// if the lower finger point of the palm grid moves this relative amount it will have a similarity of 0 to itself at the previous position
  320. /// </summary>
  321. public static readonly float PalmTrackerMaxFingersLowerRelativeMove = TrackerMaxRelativeMove;
  322. /// <summary>
  323. /// if the upper finger point of the palm grid moves this relative amount it will have a similarity of 0 to itself at the previous position
  324. /// </summary>
  325. public static readonly float PalmTrackerMaxFingersUpperRelativeMove = TrackerMaxRelativeMove;
  326. /// <summary>
  327. /// if the lower wrist point of the palm grid moves this relative amount it will have a similarity of 0 to itself at the previous position
  328. /// </summary>
  329. public static readonly float PalmTrackerMaxWristLowerRelativeMove = TrackerMaxRelativeMove;
  330. /// <summary>
  331. /// if the upper wrist point of the palm grid moves this relative amount it will have a similarity of 0 to itself at the previous position
  332. /// </summary>
  333. public static readonly float PalmTrackerMaxWristUpperRelativeMove = TrackerMaxRelativeMove;
  334. /// <summary>
  335. /// number of frames a palm needs to be detected before it is tracked
  336. /// </summary>
  337. public static readonly int PalmTrackerNumFramesDetectedUntilTracked = 5;
  338. /// <summary>
  339. /// number of frames a palm needs to be lost before it is deleted
  340. /// </summary>
  341. public static readonly int PalmTrackerNumFramesLostUntilDeleted = 5;
  342. #endregion palm tracker
  343. #region palm grid
  344. /// <summary>
  345. /// default number of palm grid columns
  346. /// </summary>
  347. public static readonly int PalmGridDefaultNumColumns = 4;
  348. /// <summary>
  349. /// default number of palm grid rows
  350. /// </summary>
  351. public static readonly int PalmGridDefaultNumRows = 3;
  352. /// <summary>
  353. /// number of palm slider capacity
  354. /// </summary>
  355. public static int PalmSliderMax = 10;
  356. /// <summary>
  357. /// position of palm slider
  358. /// </summary>
  359. public static int PalmSliderPos = 1;
  360. /// <summary>
  361. /// current value of palm slider
  362. /// </summary>
  363. public static int PalmSliderCurr = 0;
  364. /// <summary>
  365. /// current state of palm slider
  366. /// </summary>
  367. public static int PalmSliderState = 0;
  368. /// <summary>
  369. ///
  370. /// </summary>
  371. public static int PalmSliderLastTouched = 0;
  372. #endregion palm grid
  373. #region touch detection
  374. /// <summary>
  375. /// the size of the quadrant around the touch positions that is used to determine the touch value
  376. /// </summary>
  377. public static readonly int TouchAreaSize = 30;
  378. /// <summary>
  379. /// the maximum downwards difference for the flood fill operation
  380. /// </summary>
  381. public static readonly int TouchFloodfillDownDiff = 1;
  382. /// <summary>
  383. /// the maximum upwards difference for the flood fill operation
  384. /// </summary>
  385. public static readonly int TouchFloodfillUpDiff = 3;
  386. /// <summary>
  387. /// the threshold number of pixels affected by the flood fill (in percentage) to be considered as a touch
  388. /// </summary>
  389. public static readonly float TouchMinTouchValue = 0.3f;
  390. /// <summary>
  391. /// the position adjustment for the start point of the flood fill operation
  392. /// </summary>
  393. public static readonly int TouchTipInsideFactor = 2;
  394. /// <summary>
  395. /// the position adjustment for the position of the actual touch event
  396. /// </summary>
  397. public static readonly int TouchTipOutsideFactor = 7;
  398. #endregion touch detection
  399. #region touch tracking
  400. /// <summary>
  401. /// xx entry for the measurement noise covariance matrix for the kalman filter used to smooth touch events
  402. /// </summary>
  403. public static readonly float TouchmXX = 0.003f;
  404. /// <summary>
  405. /// xy and yx entry for the measurement noise covariance matrix for the kalman filter used to smooth touch events
  406. /// </summary>
  407. public static readonly float TouchmXY = 0.0f;
  408. /// <summary>
  409. /// yy entry for the measurement noise covariance matrix for the kalman filter used to smooth touch events
  410. /// </summary>
  411. public static readonly float TouchmYY = 0.00165f;
  412. /// <summary>
  413. /// value used for all entries in the process noise covariance matrix for the kalman filter used to smooth touch events
  414. /// </summary>
  415. public static readonly float TouchProcessNoise = 3.0e-4f;
  416. /// <summary>
  417. /// if the absolute position of a tracked touch event moves this relative amount it will have a similarity of 0 to itself at the previous position
  418. /// </summary>
  419. public static readonly float TouchTrackerMaxAbsolutePositionRelativeMove = TrackerMaxRelativeMove;
  420. /// <summary>
  421. /// number of frames an object needs to be detected before it is tracked
  422. /// </summary>
  423. public static readonly int TouchTrackerNumFramesDetectedUntilTracked = 1;
  424. /// <summary>
  425. /// number of frames an object needs to be lost before it is deleted
  426. /// </summary>
  427. public static readonly int TouchTrackerNumFramesLostUntilDeleted = 5;
  428. #endregion touch tracking
  429. #region TouchEventVisualizer
  430. /// <summary>
  431. /// time in milliseconds after which old touch events are removed from the touch event visualizer
  432. /// </summary>
  433. public static readonly int TouchEventVisualizerFadeOutTime = 1500;
  434. #endregion TouchEventVisualizer
  435. #region homographyExport
  436. /// <summary>
  437. /// file name of the file to which the homography is written
  438. /// </summary>
  439. public static readonly String HomographyFileName = "homography.txt";
  440. #endregion homographyExport
  441. #region colors
  442. #region general
  443. /// <summary>
  444. /// color used to draw detected objects
  445. /// </summary>
  446. public static readonly Color ColorDetected = Color.Turquoise;
  447. /// <summary>
  448. /// color used to draw tracked objects
  449. /// </summary>
  450. public static readonly Color ColorTracked = Color.Yellow;
  451. #endregion general
  452. #region images
  453. /// <summary>
  454. /// color used to specify which color channels the depth image is drawn to
  455. /// </summary>
  456. public static readonly Color DepthImageColor = Color.White;
  457. /// <summary>
  458. /// color used to specify which color channels the edge image is drawn to
  459. /// </summary>
  460. public static readonly Color EdgeImageColor = Color.Blue;
  461. /// <summary>
  462. /// color used to draw the borders of the output images
  463. /// </summary>
  464. public static readonly Color OutputImageBorderColor = Color.White;
  465. #endregion images
  466. #region finger
  467. /// <summary>
  468. /// color used to draw the finger contour
  469. /// </summary>
  470. public static readonly Color FingerContourColor = Color.Red;
  471. /// <summary>
  472. /// color used to draw the detected fingers
  473. /// </summary>
  474. public static readonly Color FingerDetectedColor = ColorDetected;
  475. /// <summary>
  476. /// color used to draw the finger hand point
  477. /// </summary>
  478. public static readonly Color FingerHandColor = Color.Yellow;
  479. /// <summary>
  480. /// color used to draw the text for the finger id
  481. /// </summary>
  482. public static readonly Color FingerIDColor = Color.White;
  483. /// <summary>
  484. /// color used to draw the finger slices
  485. /// </summary>
  486. public static readonly Color FingerSliceColor = Color.Magenta;
  487. /// <summary>
  488. /// color used to draw the finger tip point
  489. /// </summary>
  490. public static readonly Color FingerTipColor = Color.Blue;
  491. /// <summary>
  492. /// color used to draw the tracked fingers
  493. /// </summary>
  494. public static readonly Color FingerTrackedColor = ColorTracked;
  495. #endregion finger
  496. #region touch
  497. /// <summary>
  498. /// color used to draw detected touch events
  499. /// </summary>
  500. public static readonly Color TouchEventDetectedColor = ColorDetected;
  501. /// <summary>
  502. /// color used to draw tracked touch events
  503. /// </summary>
  504. public static readonly Color TouchEventTrackedColor = ColorTracked;
  505. ///<summary>
  506. /// all touched buttons
  507. /// </summary>
  508. ///
  509. public static List<List<bool>> ActiveTouches;
  510. #endregion touch
  511. #region TouchEventVisualizer
  512. /// <summary>
  513. /// color used to highlight the active block in the touch event visualizer
  514. /// </summary>
  515. public static readonly Color TouchEventVisualizerActiveBlockColor = Color.DarkSlateGray;
  516. /// <summary>
  517. /// color used to draw the grid in the touch event visualizer
  518. /// </summary>
  519. public static readonly Color TouchEventVisualizerGridColor = Color.White;
  520. /// <summary>
  521. /// color used to draw the lines between touch events in the touch event visualizer
  522. /// </summary>
  523. public static readonly Color TouchEventVisualizerLineColor = Color.Yellow;
  524. /// <summary>
  525. /// color used to draw the touch event points in the touch event visualizer
  526. /// </summary>
  527. public static readonly Color TouchEventVisualizerPointColor = Color.Red;
  528. /// <summary>
  529. /// color used to draw the text in the touch event visualizer
  530. /// </summary>
  531. public static readonly Color TouchEventVisualizerTextColor = Color.White;
  532. #endregion TouchEventVisualizer
  533. #region palm
  534. /// <summary>
  535. /// color used to draw the palm grid in the palm
  536. /// </summary>
  537. public static readonly Color PalmGridColor = Color.CornflowerBlue;
  538. /// <summary>
  539. /// color used to draw the palm quadrangle
  540. /// </summary>
  541. public static readonly Color PalmQuadColor = Color.Blue;
  542. #endregion palm
  543. #region hand
  544. /// <summary>
  545. /// color used to draw the hand centroid
  546. /// </summary>
  547. public static readonly Color HandCentroidColor = Color.Yellow;
  548. /// <summary>
  549. /// colors used to draw the hands (element is a color which specifies the color channels used to draw the hand)
  550. /// </summary>
  551. public static readonly Color[] HandColors = new Color[3] { Color.Red, Color.Blue, Color.Green };
  552. /// <summary>
  553. /// color used to draw the hand id text
  554. /// </summary>
  555. public static readonly Color HandIDColor = Color.White;
  556. /// <summary>
  557. /// color used to draw the lines of the thumb defects
  558. /// </summary>
  559. public static readonly Color HandThumbDefectLineColor = Color.CornflowerBlue;
  560. /// <summary>
  561. /// color used to draw the points of the thumb defects
  562. /// </summary>
  563. public static readonly Color HandThumbDefectPointColor = Color.Lime;
  564. #endregion hand
  565. #region calibration
  566. /// <summary>
  567. /// color used to draw the calibration points in the glasses window
  568. /// </summary>
  569. public static readonly Color CalibrationPointColor = Color.Yellow;
  570. #endregion calibration
  571. #endregion colors
  572. }
  573. }