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