IVideoHandle.cs 835 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. //convert2Dto3D(float x, float y, int depth)
  27. Vector getPalmPosition2D(uint handIndex);
  28. Vector getPalmPosition3D(uint handIndex);
  29. Vector pixel2VertexPosition(Vector pixelPosition);
  30. int getWidth();
  31. int getHeight();
  32. }
  33. }