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; }
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; }