This Method converts single-channel Mat to 2D List
List<List<num>> toList() { final ret = <List<num>>[]; forEachRow((r, v) => ret.add(v)); return ret; }