Пример #1
0
        public float OverlapSizeWithLinesEnd(DrawsomeLine line, int take = 10)
        {
            float res = 0;

            foreach (var littleRect in line.LittleRects.Skip(Math.Max(0, line.LittleRects.Count() - take)))
            {
                res += this.RecogUnit.BoundingRect.OverlapSize(littleRect);
            }
            return(res);
        }
Пример #2
0
        public float OverlapSizeWithLinesBegin(DrawsomeLine line, int take = 10)
        {
            float res = 0;

            foreach (var littleRect in line.LittleRects.Take(take))
            {
                res += this.RecogUnit.BoundingRect.OverlapSize(littleRect);
            }
            return(res);
        }