Closed rainyl closed 2 months ago
I have reconsidered this, and think it's not necessary now.
2D mat is the most commonly used, and many users have used Mat.shape, keeping compatibility is important.
for 3D mat, just use Mat.size, same as opencv c++.
Refer to the API doc, https://pub.dev/documentation/opencv_dart/latest/cv.core/Mat/size.html ,
Mat.size
will return aVecI32
, basically you can use it as otherIterable
likeList
.But
Mat.shape
may be misleading and we will make it as an alias ofMat.size
in the future._Originally posted by @rainyl in https://github.com/rainyl/opencv_dart/issues/231#issuecomment-2327716519_