SensorsParameter.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Drawing;
  2. using System.Collections.Generic;
  3. namespace shjxCamera
  4. {
  5. public class SensorsParameter
  6. {
  7. #region properties
  8. /// <summary>
  9. /// 摄像头采样区域
  10. /// </summary>
  11. public Rectangle RoiSample;
  12. /// <summary>
  13. /// 是否使用目标区域精确像素定位:仅计算区域内G值大于指定阈值的像素点
  14. /// </summary>
  15. public bool UseRoiMask { get; set; }
  16. /// <summary>
  17. /// 目标区域内有效点的坐标
  18. /// </summary>
  19. public List<Point> RoiMaskPoints { get; set; }
  20. /// <summary>
  21. /// roi区域定位后,再进行偏移
  22. /// </summary>
  23. public int RoiOffsetX { get; set; }
  24. #endregion
  25. #region methods
  26. public SensorsParameter()
  27. {
  28. RoiSample = new Rectangle(310, 210, 20, 20);
  29. UseRoiMask = true;
  30. RoiMaskPoints = null;
  31. RoiOffsetX = 5;
  32. }
  33. #endregion
  34. }
  35. }