How do I get Mat data into a compute buffer and vice versa
ComputeBuffer object; Mat data; conversion function?
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