OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

How do I get Mat data into a compute buffer and vice versa

Open bobluoluo opened this issue 4 years ago • 1 comments

ComputeBuffer object; Mat data; conversion function?

bobluoluo avatar Apr 23 '21 21:04 bobluoluo

Unfortunately, I don't have an example of converting between Mat data and compute buffer.

Also, The following methods can be used to input and output Mat data to and from an array. static void OpenCVForUnity.UnityUtils.Utils.copyFromMat< T >(Mat mat, T[] array ) https://enoxsoftware.github.io/OpenCVForUnity/3.0.0/doc/html/class_open_c_v_for_unity_1_1_unity_utils_1_1_utils.html#a4daf2b057db259277d26a216ad3cac53

static void OpenCVForUnity.UnityUtils.Utils.copyToMat< T >(T[] array, Mat mat ) https://enoxsoftware.github.io/OpenCVForUnity/3.0.0/doc/html/class_open_c_v_for_unity_1_1_unity_utils_1_1_utils.html#a6674cb7c1b64b7809f199d802be48989

EnoxSoftware avatar Apr 26 '21 13:04 EnoxSoftware