PicConfigModel.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Xml.Serialization;
  7. namespace SmartCoalApplication.Base.SettingModel
  8. {
  9. /// <summary>
  10. /// 图片对应的XML配置
  11. /// </summary>
  12. [XmlRoot("ROOT")]
  13. public class PicConfigModel
  14. {
  15. /// <summary>
  16. /// 图片基本信息,保存啥待定
  17. /// </summary>
  18. [XmlElement("Meta")]
  19. public Meta meta { get; set; }
  20. /// <summary>
  21. /// 图片对应的硬件信息
  22. /// </summary>
  23. [XmlElement("Hardware")]
  24. public Hardware hardware { get; set; }
  25. /// <summary>
  26. /// 图片对应的标尺信息
  27. /// </summary>
  28. [XmlElement("Rule")]
  29. public Rule rule { get; set; }
  30. /// <summary>
  31. /// 相机参数
  32. /// </summary>
  33. public CameraParamModel cameraParamModel { get; set; }
  34. public class Meta
  35. {
  36. /// <summary>
  37. /// 图片名称
  38. /// </summary>
  39. [XmlElement("Text")]
  40. public string text { get; set; }
  41. /// <summary>
  42. /// 图片格式
  43. /// </summary>
  44. [XmlElement("Format")]
  45. public string format { get; set; }
  46. /// <summary>
  47. /// 创建时间
  48. /// </summary>
  49. [XmlElement("CreatedTime")]
  50. public string createdTime { get; set; }
  51. /// <summary>
  52. /// 图片大小
  53. /// </summary>
  54. [XmlElement("ImageSize")]
  55. public string imageSize { get; set; }
  56. }
  57. public class Hardware
  58. {
  59. /// <summary>
  60. /// 显微镜
  61. /// </summary>
  62. [XmlElement("Microscope")]
  63. public string microscope { get; set; }
  64. /// <summary>
  65. /// 物镜
  66. /// </summary>
  67. [XmlElement("Objective")]
  68. public string objective { get; set; }
  69. /// <summary>
  70. /// 变倍器
  71. /// </summary>
  72. [XmlElement("MagnificationChanger")]
  73. public string magnificationChanger { get; set; }
  74. /// <summary>
  75. /// 曝光时间
  76. /// </summary>
  77. [XmlElement("ExposureTime")]
  78. public string exposureTime { get; set; }
  79. /// <summary>
  80. /// 分辨率
  81. /// </summary>
  82. public int Resolution { get; set; }
  83. /// <summary>
  84. /// 全局增益
  85. /// </summary>
  86. public int GlobalGain { get; set; }
  87. /// <summary>
  88. /// 亮度
  89. /// </summary>
  90. public int Brightness { get; set; }
  91. /// <summary>
  92. /// 自动曝光
  93. /// </summary>
  94. public int ATExposure { get; set; }
  95. /// <summary>
  96. /// 曝光百分比
  97. /// </summary>
  98. public int PreExposure { get; set; }
  99. /// <summary>
  100. /// 白平衡
  101. /// </summary>
  102. public int WhiteBalance { get; set; }
  103. /// <summary>
  104. /// 黑平衡
  105. /// </summary>
  106. public int BlackBalance { get; set; }
  107. /// <summary>
  108. /// 单色的
  109. /// </summary>
  110. public int Monochromatic { get; set; }
  111. /// <summary>
  112. /// 平场校正
  113. /// </summary>
  114. public int FlatFieldCorrection { get; set; }
  115. /// <summary>
  116. /// 锐利
  117. /// </summary>
  118. public int Sharpness { get; set; }
  119. /// <summary>
  120. /// 硬盘驱动器
  121. /// </summary>
  122. public int HDR { get; set; }
  123. /// <summary>
  124. /// 区域白平衡启用
  125. /// </summary>
  126. public int AreaWhiteBalanceEnable { get; set; }
  127. /// <summary>
  128. /// 伽马
  129. /// </summary>
  130. public int Gamma { get; set; }
  131. /// <summary>
  132. /// 对比度
  133. /// </summary>
  134. public int Contrast { get; set; }
  135. /// <summary>
  136. /// 饱和
  137. /// </summary>
  138. public int Saturation { get; set; }
  139. /// <summary>
  140. /// 红色通道
  141. /// </summary>
  142. public double RedChannel { get; set; }
  143. /// <summary>
  144. /// 绿色通道
  145. /// </summary>
  146. public double GreenChannel { get; set; }
  147. /// <summary>
  148. /// 蓝海峡
  149. /// </summary>
  150. public double BlueChannel { get; set; }
  151. /// <summary>
  152. /// 色温
  153. /// </summary>
  154. public int ColorTemperature { get; set; }
  155. /// <summary>
  156. /// 水平
  157. /// </summary>
  158. public int Horizontal { get; set; }
  159. /// <summary>
  160. /// 垂直
  161. /// </summary>
  162. public int Vertical { get; set; }
  163. /// <summary>
  164. /// 垂直校正
  165. /// </summary>
  166. public int VerticalCorrection { get; set; }
  167. /// <summary>
  168. /// 通道选择
  169. /// </summary>
  170. public int ChannelsSelect { get; set; }
  171. /// <summary>
  172. /// 右旋90 不旋转0 旋转1
  173. /// </summary>
  174. public int RotateR90 { get; set; }
  175. /// <summary>
  176. /// 左旋90 不旋转0 旋转1
  177. /// </summary>
  178. public int RotateL90 { get; set; }
  179. /// <summary>
  180. /// 右旋 不旋转0 旋转90度1 旋转180度2 旋转2700度3
  181. /// </summary>
  182. public int Rotate { get; set; }
  183. /// <summary>
  184. /// 色调
  185. /// </summary>
  186. public int Hue { get; set; }
  187. }
  188. public class Rule
  189. {
  190. /// <summary>
  191. /// 标尺名称
  192. /// </summary>
  193. public string ruler_name { get; set; }
  194. /// <summary>
  195. /// 放大倍数
  196. /// </summary>
  197. public decimal gain_multiple { get; set; }
  198. /// <summary>
  199. /// 像素长度
  200. /// </summary>
  201. public int pixel_length { get; set; }
  202. /// <summary>
  203. /// 物理长度
  204. /// </summary>
  205. public decimal physical_length { get; set; }
  206. /// <summary>
  207. /// 测量单位
  208. /// </summary>
  209. public int ruler_units { get; set; }
  210. }
  211. }
  212. }