Extract vx_image from vx_tensor


I have two OpenVX user kernels A and B. The output of kernel A is of type vx_tensor, which contains RGB planar (WxHx3) image data. Kernel B takes input of type vx_image.

I need to connect kernels A and B such that the image data is passed from kernel A to kernel B without any unnecessary copies, to keep aggregate kernel runtime to a minimum.

How can I extract the image data from the output of kernel A and pass it in the form of a vx_image to kernel B?

Thank you.