123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Xml.Serialization;
- namespace SmartCoalApplication.Base.SettingModel
- {
- /// <summary>
- /// 图片对应的XML配置
- /// </summary>
- [XmlRoot("ROOT")]
- public class PicConfigModel
- {
- /// <summary>
- /// 图片基本信息,保存啥待定
- /// </summary>
- [XmlElement("Meta")]
- public Meta meta { get; set; }
- /// <summary>
- /// 图片对应的硬件信息
- /// </summary>
- [XmlElement("Hardware")]
- public Hardware hardware { get; set; }
- /// <summary>
- /// 图片对应的标尺信息
- /// </summary>
- [XmlElement("Rule")]
- public Rule rule { get; set; }
- /// <summary>
- /// 相机参数
- /// </summary>
- public CameraParamModel cameraParamModel { get; set; }
- public class Meta
- {
- /// <summary>
- /// 图片名称
- /// </summary>
- [XmlElement("Text")]
- public string text { get; set; }
- /// <summary>
- /// 图片格式
- /// </summary>
- [XmlElement("Format")]
- public string format { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [XmlElement("CreatedTime")]
- public string createdTime { get; set; }
- /// <summary>
- /// 图片大小
- /// </summary>
- [XmlElement("ImageSize")]
- public string imageSize { get; set; }
- }
- public class Hardware
- {
- /// <summary>
- /// 显微镜
- /// </summary>
- [XmlElement("Microscope")]
- public string microscope { get; set; }
- /// <summary>
- /// 物镜
- /// </summary>
- [XmlElement("Objective")]
- public string objective { get; set; }
- /// <summary>
- /// 变倍器
- /// </summary>
- [XmlElement("MagnificationChanger")]
- public string magnificationChanger { get; set; }
- /// <summary>
- /// 曝光时间
- /// </summary>
- [XmlElement("ExposureTime")]
- public string exposureTime { get; set; }
- /// <summary>
- /// 分辨率
- /// </summary>
- public int Resolution { get; set; }
- /// <summary>
- /// 全局增益
- /// </summary>
- public int GlobalGain { get; set; }
- /// <summary>
- /// 亮度
- /// </summary>
- public int Brightness { get; set; }
- /// <summary>
- /// 自动曝光
- /// </summary>
- public int ATExposure { get; set; }
- /// <summary>
- /// 曝光百分比
- /// </summary>
- public int PreExposure { get; set; }
- /// <summary>
- /// 白平衡
- /// </summary>
- public int WhiteBalance { get; set; }
- /// <summary>
- /// 黑平衡
- /// </summary>
- public int BlackBalance { get; set; }
- /// <summary>
- /// 单色的
- /// </summary>
- public int Monochromatic { get; set; }
- /// <summary>
- /// 平场校正
- /// </summary>
- public int FlatFieldCorrection { get; set; }
- /// <summary>
- /// 锐利
- /// </summary>
- public int Sharpness { get; set; }
- /// <summary>
- /// 硬盘驱动器
- /// </summary>
- public int HDR { get; set; }
- /// <summary>
- /// 区域白平衡启用
- /// </summary>
- public int AreaWhiteBalanceEnable { get; set; }
- /// <summary>
- /// 伽马
- /// </summary>
- public int Gamma { get; set; }
- /// <summary>
- /// 对比度
- /// </summary>
- public int Contrast { get; set; }
- /// <summary>
- /// 饱和
- /// </summary>
- public int Saturation { get; set; }
- /// <summary>
- /// 红色通道
- /// </summary>
- public double RedChannel { get; set; }
- /// <summary>
- /// 绿色通道
- /// </summary>
- public double GreenChannel { get; set; }
- /// <summary>
- /// 蓝海峡
- /// </summary>
- public double BlueChannel { get; set; }
- /// <summary>
- /// 色温
- /// </summary>
- public int ColorTemperature { get; set; }
- /// <summary>
- /// 水平
- /// </summary>
- public int Horizontal { get; set; }
- /// <summary>
- /// 垂直
- /// </summary>
- public int Vertical { get; set; }
- /// <summary>
- /// 垂直校正
- /// </summary>
- public int VerticalCorrection { get; set; }
- /// <summary>
- /// 通道选择
- /// </summary>
- public int ChannelsSelect { get; set; }
- /// <summary>
- /// 右旋90 不旋转0 旋转1
- /// </summary>
- public int RotateR90 { get; set; }
- /// <summary>
- /// 左旋90 不旋转0 旋转1
- /// </summary>
- public int RotateL90 { get; set; }
- /// <summary>
- /// 右旋 不旋转0 旋转90度1 旋转180度2 旋转2700度3
- /// </summary>
- public int Rotate { get; set; }
- /// <summary>
- /// 色调
- /// </summary>
- public int Hue { get; set; }
- }
- public class Rule
- {
- /// <summary>
- /// 标尺名称
- /// </summary>
- public string ruler_name { get; set; }
- /// <summary>
- /// 放大倍数
- /// </summary>
- public decimal gain_multiple { get; set; }
- /// <summary>
- /// 像素长度
- /// </summary>
- public int pixel_length { get; set; }
- /// <summary>
- /// 物理长度
- /// </summary>
- public decimal physical_length { get; set; }
- /// <summary>
- /// 测量单位
- /// </summary>
- public int ruler_units { get; set; }
- }
- }
- }
|