Parameters.cs 27 KB

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