Пример #1
0
        public Mat(VecCollection collection)
        {
            if (collection == null || collection.Count < 1)
                throw new ArgumentNullException("Collection cannot be null or empty.");

            Size = new MatSize(collection);

            Collection = collection;
        }
Пример #2
0
        public Mat(int rowCount, int colCount)
        {
            var collection = new VecCollection(colCount);
            for (int i = 0; i < rowCount; i++)
            {
                collection.Add(new Vec(colCount));
            }

            Size = new MatSize(collection);

            Collection = collection;
        }