FrameData.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using BBIWARG.Images;
  2. using BBIWARG.Recognition.FingerRecognition;
  3. using BBIWARG.Recognition.HandRecognition;
  4. using BBIWARG.Recognition.PalmRecognition;
  5. using BBIWARG.Recognition.TouchRecognition;
  6. using BBIWARG.Utility;
  7. using System.Collections.Generic;
  8. namespace BBIWARG.Input.InputHandling
  9. {
  10. /// <summary>
  11. /// Data class which holds all data read an generated for one frame.
  12. /// </summary>
  13. public class FrameData
  14. {
  15. /// <summary>
  16. /// the confidence image read in this frame
  17. /// </summary>
  18. public ConfidenceImage ConfidenceImage { get; set; }
  19. /// <summary>
  20. /// the depth image read in this frame
  21. /// </summary>
  22. public DepthImage DepthImage { get; set; }
  23. /// <summary>
  24. /// a list of fingers detected in this frame
  25. /// </summary>
  26. public List<Finger> DetectedFingers { get; set; }
  27. /// <summary>
  28. /// a list of hands detected in this frame
  29. /// </summary>
  30. public List<Hand> DetectedHands { get; set; }
  31. /// <summary>
  32. /// a list of palms detected in this frame
  33. /// </summary>
  34. public List<Palm> DetectedPalms { get; set; }
  35. /// <summary>
  36. /// a list of <see cref="Touch"/> objects detected in this frame
  37. /// </summary>
  38. public List<Touch> DetectedTouches { get; set; }
  39. /// <summary>
  40. /// the edge image created in this frame
  41. /// </summary>
  42. public EdgeImage EdgeImage { get; set; }
  43. /// <summary>
  44. /// the id of the frame
  45. /// </summary>
  46. public int FrameID { get; set; }
  47. /// <summary>
  48. /// the size of all the images
  49. /// </summary>
  50. public ImageSize ImageSize { get; set; }
  51. /// <summary>
  52. /// set iff the input source is a movie which is in the first frame again
  53. /// </summary>
  54. public bool ResetFlag { get; set; }
  55. /// <summary>
  56. /// a list of touch events generated in this frame
  57. /// </summary>
  58. public List<TouchEvent> TouchEvents { get; set; }
  59. /// <summary>
  60. /// a list of fingers which are tracked in this frame
  61. /// </summary>
  62. public List<Finger> TrackedFingers { get; set; }
  63. /// <summary>
  64. /// a list of hands which are tracked in this frame
  65. /// </summary>
  66. public List<Hand> TrackedHands { get; set; }
  67. /// <summary>
  68. /// a list of palms which are tracked in this frame
  69. /// </summary>
  70. public List<Palm> TrackedPalms { get; set; }
  71. /// <summary>
  72. /// a list of <see cref="Touch"/> objects which are tracked in this frame
  73. /// </summary>
  74. public List<Touch> TrackedTouches { get; set; }
  75. }
  76. }