[−][src]Function opencv::core::convert_from_buffer
pub fn convert_from_buffer(
cl_mem_buffer: *mut c_void,
step: size_t,
rows: i32,
cols: i32,
typ: i32,
dst: &mut UMat
) -> Result<()>
Convert OpenCL buffer to UMat
Note:
OpenCL buffer (cl_mem_buffer) should contain 2D image data, compatible with OpenCV. Memory
content is not copied from clBuffer
to UMat. Instead, buffer handle assigned to UMat and
clRetainMemObject
is called.
Parameters
- cl_mem_buffer: source clBuffer handle
- step: num of bytes in single row
- rows: number of rows
- cols: number of cols
- type: OpenCV type of image
- dst: destination UMat