Ask Your Question
0

opencv oclMat interop with clBuffer or clImage data

asked Apr 16 '13

victusfate gravatar image

updated Apr 16 '13

how can I construct an oclMat from device memory, and also send the contents of oclMat to opencl data types after

for example how can I go from a cl::Buffer or cl::Image2D to an oclMat with the current constructors. The opencv opencl code I'd like to use is part of a processing chain.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jan 10 '14

decision gravatar image

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.

Preview: (hide)

Question Tools

Stats

Asked: Apr 16 '13

Seen: 490 times

Last updated: Jan 10 '14