1 | initial version |
From top of my head, I don't think there are constructors for it. You might be able to fiddle with a publicly accessible data pointer ("data") in combination with manually manipulating the reference pointer (i.e., "release()" method), but I'm not sure this is a good (or even performant) way to do it.
You can of course go the opposite way and let OpenCV execute your kernels for you, see the *interop methods.