Example #1
0
 public override IObservable <Mat> Process(IObservable <Mat> source)
 {
     return(source.Select(input =>
     {
         return input.GetRows(StartRow, EndRow.GetValueOrDefault(input.Rows))
         .GetCols(StartCol, EndCol.GetValueOrDefault(input.Cols));
     }));
 }
Example #2
0
        public void RowToRepeatAtTop(int StartRow, int EndRow = 0)
        {
            if (EndRow == 0)
            {
                EndRow = StartRow;
            }
            string RowRange = $"${StartRow.ToString()}:${EndRow.ToString()}";

            ws.PageSetup.PrintTitleRows = RowRange;
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProtocolVersion != 0)
            {
                hash ^= ProtocolVersion.GetHashCode();
            }
            if (MessageType != 0)
            {
                hash ^= MessageType.GetHashCode();
            }
            if (Side != 0)
            {
                hash ^= Side.GetHashCode();
            }
            if (StartRow != 0)
            {
                hash ^= StartRow.GetHashCode();
            }
            if (StartCol != 0)
            {
                hash ^= StartCol.GetHashCode();
            }
            if (EndRow != 0)
            {
                hash ^= EndRow.GetHashCode();
            }
            if (EndCol != 0)
            {
                hash ^= EndCol.GetHashCode();
            }
            if (GameOutcome != 0)
            {
                hash ^= GameOutcome.GetHashCode();
            }
            return(hash);
        }