CameraParamModel.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Serialization;
  8. namespace PaintDotNet.Base.SettingModel
  9. {
  10. /// <summary>
  11. /// 相机设置参数配置信息
  12. /// </summary>
  13. [XmlRoot("ROOT")]
  14. public class CameraParamModel
  15. {
  16. [XmlElement("ParameterSets")]
  17. public ParameterSets parame { get; set; }
  18. public class ParameterSets
  19. {
  20. public int Resolution; // 分辨率
  21. public int PixelClock; // 像素时钟
  22. public int BitOfDepth; // 比特深度
  23. public int GlobalGain; // 全局增益
  24. public int Brightness; // 亮度
  25. public int ATExposure; // 自动曝光
  26. public int FMExposure; // fm曝光
  27. public double LNExposure; // 曝光时间
  28. public int PreExposure; // 曝光百分比
  29. public int BlackLevel; // 黑度
  30. public int WhiteBalance; // 白平衡
  31. public int BlackBalance; // 黑平衡
  32. public int Monochromatic; // 单色的
  33. public int FlatFieldCorrection; // 平场校正
  34. public int Sharpness; // 锐利
  35. public int Temperature; // 温度
  36. public int FanMode; // 风扇模式
  37. public int Trigger; // 触发
  38. public int TriggerOutput; // 触发器输出
  39. public int TriggerSource; // 触发源
  40. public int TriggerOption; // 触发选项
  41. public int TriggerNumber; // 触发数
  42. public int BlackLevelHighGain; // 黑电平高增益
  43. public int BlackLevelLowGain; // 黑电平低增益
  44. public int Enhance; // 增强
  45. public int DefectCorrectionValue; // 缺陷修正值
  46. public int MultipleCameras; // 多摄像机
  47. public int FrequencyPermission; // 频率终止
  48. public int FrequencyValue; // 频率值
  49. public int NegativeFilm; // 底片
  50. public int HDR; // 高动态范围成像
  51. public int BlackLevelOffsetEnable; // BlackLevelOffsetable可检测
  52. public int EnhanceStrength; // 增强血统
  53. public int RateMode; // 速率模式
  54. public int AreaWhiteBalanceEnable; // 区域白平衡启用
  55. public int ATExposureMode; // ATExposureMode公司
  56. public int BinningSumation; // BinningSumation酒店
  57. public int Gamma; // 伽马
  58. public int Contrast; // 对比度
  59. public int Saturation; // 饱和
  60. public int GainChannel; // GainChannel公司
  61. public double RedChannel; // 红色通道
  62. public double GreenChannel; // 绿色通道
  63. public double BlueChannel; // 蓝海峡
  64. public int ColorTemperature; // 色温
  65. public int LeftLevels; // 左水平
  66. public int RightLevels; // 右水平
  67. public int RedLeftLevels; // 红左水平
  68. public int RedRightLevels; // 红光级别
  69. public int GreenLeftLevels; // 左绿色级别
  70. public int GreenRightLevels; // 绿色等级
  71. public int BlueLeftLevels; // 蓝左级别
  72. public int BlueRightLevels; // 蓝右级别
  73. public int HistogramStatistic; // 组织统计
  74. public int AutoLevels; // 自动水平仪
  75. public int Horizontal; // 水平
  76. public int Vertical; // 垂直
  77. public int VerticalCorrection; // 垂直校正
  78. public int ChannelsSelect; // 通道选择
  79. public int RotateR90; // 右旋90 不旋转0 旋转1
  80. public int RotateL90; // 左旋90 不旋转0 旋转1
  81. public int Rotate; // 右旋 不旋转0 旋转90度1 旋转180度2 旋转2700度3
  82. public int Hue; // 色调
  83. public int Light; // 轻
  84. /// <summary>
  85. /// 扩展值
  86. /// </summary>
  87. public int ShowColorPBoxFlag; //显示颜色通道
  88. public int ShadingCorrection;
  89. //起始点坐标
  90. public int previewRectX;//X坐标
  91. public int previewRectY;//Y坐标
  92. //图片尺寸
  93. public int previewRectW;//区域宽度
  94. public int previewRectH;//区域高度
  95. }
  96. public void SetPreviewRect(Rectangle rect)
  97. {
  98. SetPreviewRect(rect.X, rect.Y, rect.Width, rect.Height);
  99. }
  100. public void SetPreviewRect(int x, int y, int w, int h)
  101. {
  102. parame.previewRectX = x;
  103. parame.previewRectY = y;
  104. parame.previewRectW = w;
  105. parame.previewRectH = h;
  106. }
  107. }
  108. }