PalmTouchEvent.cs 721 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using bbiwarg.Utility;
  7. using bbiwarg.Recognition.FingerRecognition;
  8. using bbiwarg.Recognition.PalmRecognition;
  9. using Emgu.CV;
  10. using Emgu.CV.Structure;
  11. namespace bbiwarg.Recognition.TouchRecognition
  12. {
  13. class PalmTouchEvent : TouchEvent
  14. {
  15. public Vector2D RelativePalmPosition { get; private set; }
  16. public PalmTouchEvent(Vector2D absolutePosition, Image<Gray, byte> touchMask, Finger finger, Quadrangle palmQuad)
  17. : base(absolutePosition, touchMask, finger)
  18. {
  19. RelativePalmPosition = palmQuad.getRelativePosition(absolutePosition);
  20. }
  21. }
  22. }