public Calc BestExitPupil() { return(new Calc() .Do(b => Calcs.ForEach(c => (CalcComparer.Compare(b, c) > 0) .Then(() => b.SetPropertiesFrom(c)))) .If(b => b.LogContrastDiff > 0)); }
public ExitPupilSequence(CalcComparer calcComparer) { CalcComparer = calcComparer; _exitPupils.ForEach(_ => Calcs.Add(new Calc())); Mapper.CreateMap <ExitPupilSequence, Calc>(); }