[][src]Function opencv::core::convert_from_image

pub fn convert_from_image(
    cl_mem_image: &mut c_void,
    dst: &mut UMat
) -> Result<()>

Convert OpenCL image2d_t to UMat

Note: OpenCL image2d_t (cl_mem_image), should be compatible with OpenCV UMat formats. Memory content is copied from image to UMat with clEnqueueCopyImageToBuffer function.

Parameters

  • cl_mem_image: source image2d_t handle
  • dst: destination UMat