Пример #1
0
 void frmLogEnhance_Load(object sender, EventArgs e)
 {
     InitMaxMinValue();
     _actualArg         = _arg as ExponentEnhanceArg;
     _actualArg.Maxs[0] = (int)dblBarR.MaxValue;
     _actualArg.Mins[0] = (int)dblBarR.MinValue;
     SetToFullChannel(true);
 }
Пример #2
0
 public override System.Xml.XmlElement ToXML(XmlDocument xmldoc)
 {
     if (_exp2Arg == null)
     {
         _exp2Arg = new ExponentEnhanceArg();
     }
     return(_exp2Arg.ToXML(xmldoc));
 }
Пример #3
0
 protected override void BeforeProcess()
 {
     base.BeforeProcess();
     _exp2Arg = _arg as ExponentEnhanceArg;
     _rgbs0   = new byte[256];
     _rgbs1   = new byte[256];
     _rgbs2   = new byte[256];
     for (int i = 0; i < 256; i++)
     {
         _rgbs0[i] = ColorMath.FixByte(255 * Math.Pow(i - _exp2Arg.Mins[0], 2) / Math.Pow(_exp2Arg.Maxs[0] - _exp2Arg.Mins[0], 2));
         _rgbs1[i] = ColorMath.FixByte(255 * Math.Pow(i - _exp2Arg.Mins[1], 2) / Math.Pow(_exp2Arg.Maxs[1] - _exp2Arg.Mins[1], 2));
         _rgbs2[i] = ColorMath.FixByte(255 * Math.Pow(i - _exp2Arg.Mins[2], 2) / Math.Pow(_exp2Arg.Maxs[2] - _exp2Arg.Mins[2], 2));
     }
 }
Пример #4
0
 public override void CreateDefaultArguments()
 {
     _arg = new ExponentEnhanceArg();
 }
Пример #5
0
        public override RgbProcessorArg Clone()
        {
            ExponentEnhanceArg arg = new ExponentEnhanceArg();

            return(arg);
        }