| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System.Drawing;
- using System.Collections.Generic;
- namespace shjxCamera
- {
- public class SensorsParameter2
- {
- #region properties
- /// <summary>
- /// 摄像头采样区域
- /// </summary>
- public Rectangle RoiSample;
- /// <summary>
- /// 是否使用目标区域精确像素定位:仅计算区域内G值大于指定阈值的像素点
- /// </summary>
- public bool UseRoiMask { get; set; }
- /// <summary>
- /// 目标区域内有效点的坐标
- /// </summary>
- public List<Point> RoiMaskPoints { get; set; }
- /// <summary>
- /// roi区域定位后,再进行偏移
- /// </summary>
- public int RoiOffsetX { get; set; }
- #endregion
- #region methods
- public SensorsParameter2()
- {
- RoiSample = new Rectangle(310, 210, 20, 20);
- UseRoiMask = true;
- RoiMaskPoints = null;
- RoiOffsetX = 5;
- }
- #endregion
- }
- }
|