Closed liupgd closed 2 years ago
Julia version: 1.6.0`1.6.3
Code: arr = Array(mat) where mat is an OpenCV Mat variable which is read from an image. For an image of size 1080p, this convertion would cost 1s in my computer. Is there any better methods? Thx.
arr = Array(mat)
I found that mat.data or mat.data_raw is already a julia Array. So the conversion should be arr=mat.data, this is costless.
mat.data
mat.data_raw
arr=mat.data
Julia version: 1.6.0`1.6.3
Code:
arr = Array(mat)
where mat is an OpenCV Mat variable which is read from an image. For an image of size 1080p, this convertion would cost 1s in my computer. Is there any better methods? Thx.