FrameData.cs 2.6 KB

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