IVideoHandle.cs 993 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using MathNet.Numerics.LinearAlgebra.Single;
  5. using bbiwarg.Detectors;
  6. using bbiwarg.InputProviders;
  7. namespace bbiwarg.VideoHandles
  8. {
  9. interface IVideoHandle
  10. {
  11. void nextFrame();
  12. short getDepth(int x, int y);
  13. short getConfidence(int x, int y);
  14. Color getColor(int x, int y);
  15. // TODO: implement properly
  16. void createVertexArray(IntPtr vertexBuffer);
  17. Vector pixel2VertexPosition(Vector pixelPosition);
  18. DetectionStatus[] getFingerStatus(uint handIndex);
  19. Vector[] getFingerTipPositions3D(uint handIndex);
  20. Vector getPalmPosition3D(uint handIndex);
  21. Vector getPalmNormal3D(uint handIndex);
  22. Vector getForearmPosition3D(uint handIndex);
  23. Vector getForeFingerPosition3D(uint handIndex);
  24. List<Vector> getHandPoints();
  25. Palm getPalm(uint handIndex);
  26. int getWidth();
  27. int getHeight();
  28. }
  29. }