I would like to create a vx_image out of an array. Let us say i have 2D array:
unsigned char img_array[720][1280]={{..},{..}, ... } // filled with values
I would like to make it
vx_image
so that i can perform various pixel level operations. Any other idea to do the same thing would also be fine.
I think the best way to interoperate is: from VX(CUDA) to CUDA(native) OR OpenCV(CUDA) and vice-versa. One of the nice way is given here. And the other possible way is below (This snippet is taken from VisionWorks Document):
In both the cases we are not copying to host memory, else it will drastically degrade performance, with a caveat that operations inside myOperations_image() should also maintain this rule.