openvx

Set and get data from vx_image


I have two vx_image's src and dst, I need to get each pixel from the src vx_image and do some operation and set that to dst vx image.

vx_image src;
vx_image dst;

I couldn't find the proper documentation for doing this. May I know how to do this ?.

Thank you.


Solution

  • There is a section "Host Memory Data Object Access Patterns" in the specification : https://www.khronos.org/registry/OpenVX/specs/1.2/html/page_design.html#sec_host_memory

    It shows examples of accessing different data objects (includeing images).