rainyl / opencv_dart

OpenCV bindings for Dart language and Flutter. Support Asynchronous Now!
https://pub.dev/packages/opencv_dart
Apache License 2.0
136 stars 18 forks source link

Better mat fromlist #137

Closed rainyl closed 4 months ago

rainyl commented 4 months ago

Make Mat.fromList copy data internally to avoid extra data management, now it will copy the input data 2 times,

  1. copy it from dart List to native array (native pointer)
  2. copy native pointer at c++ side to construct Mat.