IVideoHandle.cs 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 getPalmPosition2D(uint handIndex);
  30. Vector getPalmPosition3D(uint handIndex);
  31. Vector getForearmPosition3D(uint handIndex);
  32. int getWidth();
  33. int getHeight();
  34. }
  35. }