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