FrameData.cs 2.8 KB

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