IVideoHandle.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. using bbiwarg.Images;
  8. namespace bbiwarg.VideoHandles
  9. {
  10. interface IVideoHandle
  11. {
  12. void nextFrame();
  13. short getDepth(int x, int y);
  14. short getConfidence(int x, int y);
  15. Color getColor(int x, int y);
  16. DepthImage getHandImage();
  17. // TODO: implement properly
  18. void createVertexArray(IntPtr vertexBuffer);
  19. Vector pixel2VertexPosition(Vector pixelPosition);
  20. DetectionStatus[] getFingerStatus(uint handIndex);
  21. Vector[] getFingerTipPositions3D(uint handIndex);
  22. Vector getPalmPosition3D(uint handIndex);
  23. Vector getPalmNormal3D(uint handIndex);
  24. Vector getForearmPosition3D(uint handIndex);
  25. Vector getForeFingerPosition3D(uint handIndex);
  26. List<Vector> getHandPoints();
  27. Palm getPalm(uint handIndex);
  28. int getWidth();
  29. int getHeight();
  30. int[] getSmoothedHistogram();
  31. Int16[] getSegementationDepth();
  32. }
  33. }