IVideoHandle.cs 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Drawing;
  3. using MathNet.Numerics.LinearAlgebra.Single;
  4. namespace bbiwarg.DataSource
  5. {
  6. public enum DetectionStatus
  7. {
  8. Inactive,
  9. Detected,
  10. Tracked
  11. }
  12. public enum HandSide
  13. {
  14. Unknown,
  15. Left,
  16. Right
  17. }
  18. interface IVideoHandle
  19. {
  20. void nextFrame();
  21. short getDepth(int x, int y);
  22. short getConfidence(int x, int y);
  23. Color getColor(int x, int y);
  24. // TODO: implement properly
  25. void createVertexArray(IntPtr vertexBuffer);
  26. Vector pixel2VertexPosition(Vector pixelPosition);
  27. DetectionStatus[] getFingerStatus(uint handIndex);
  28. Vector[] getFingerTipPositions3D(uint handIndex);
  29. Vector getPalmPosition3D(uint handIndex);
  30. Vector getForearmPosition3D(uint handIndex);
  31. Vector getForeFingerPosition3D(uint handIndex);
  32. Palm getPalm(uint handIndex);
  33. int getWidth();
  34. int getHeight();
  35. }
  36. }