示例#1
0
 public ImageErrors ErrorCheck(IList<ImageDatas> myList ,ImageErrors errors)
 {
     double aveWid = 0.0d;
     double aveHei = 0.0d;
     foreach(ImageDatas iD in myList)
     {
         aveWid += Math.Abs(iD.widError);
         aveHei += Math.Abs(iD.heiError);
         if (Math.Abs(errors.maxWidError) < Math.Abs(iD.widError)) { errors.maxWidError = iD.widError; }
         if (Math.Abs(errors.maxHeiError) < Math.Abs(iD.heiError)) { errors.maxHeiError = iD.heiError; }
     }
     errors.aveWidError = aveWid / myList.Count;
     errors.aveHeiError = aveHei / myList.Count;
     return errors;
 }
示例#2
0
 public void Start() {
     Mouse.OverrideCursor = Cursors.Wait;
     MyList = model.Start();
     Errors = model.ErrorCheck(MyList , Errors);
     Mouse.OverrideCursor = null;
 }