toList method

List<List<num>> toList()

This Method converts single-channel Mat to 2D List

Implementation

List<List<num>> toList() {
  final ret = <List<num>>[];
  forEachRow((r, v) => ret.add(v));
  return ret;
}