using System.Xml.Serialization; namespace PaintDotNet.Base.SettingModel { /// /// 二值提取 - 参数设置 /// [XmlRoot("ROOT")] public class GrainBoundryDectModel { /// /// 是否应用晶界重现?不应用:grainApplygrainboundaries=0; 应用: grainApplygrainboundaries=1 /// public int grainApplygrainboundaries { get; set; } /// /// 晶界颜色 /// public int grainColor { get; set; } /// /// 西格玛 /// public double sigma { get; set; } /// /// 标准图像 /// public int m_iStandardImage { get; set; } /// /// 强制连接 /// public int iConnect { get; set; } /// /// 指定晶界类型,暗晶界dark=1, 否则dark=0, dark=2梯度 /// public int dark { get; set; } /// /// 去噪类型: 高斯平滑: smooth_type=0; 方向平滑: smooth_type=1 /// public int smooth_type { get; set; } /// /// 是否增强晶界?不增强:enhance=0; 增强: enhance=1 /// public int enhance { get; set; } /// /// 晶界大小1 /// public double cell1_size { get; set; } /// /// 晶界大小2 /// public double cell2_size { get; set; } public GrainBoundryDectModel cloneModel() { GrainBoundryDectModel newMod = new GrainBoundryDectModel(); newMod.grainApplygrainboundaries = this.grainApplygrainboundaries; newMod.grainColor = this.grainColor; newMod.sigma = this.sigma; newMod.m_iStandardImage = this.m_iStandardImage; newMod.iConnect = this.iConnect; newMod.dark = this.dark; newMod.smooth_type = this.smooth_type; newMod.enhance = this.enhance; newMod.cell1_size = this.cell1_size; newMod.cell2_size = this.cell2_size; return newMod; } } }