Hasa
April 26, 2024, 2:44am
1
I have posted this question long time ago but no reaction is seen so far, if you have any idea about it, I will appreciate your response:
I have checked all the sample codes of VPI and in all of them, the image is read using opencv, converted to grayscale and then wrapped by a VPI array. However, for my application, I have my images as Cuda allocated “unsigned char*” on the device memory (no opencv, no cpu array) and they are color images, so my question is how should I transfer the data from my gpu array to VPIImage?
Here is the code I am seeking:
unsigned char * inp_img;
cudaMalloc((void**)&inp_img, array_size* sizeof(unsigned…
veraj
April 26, 2024, 5:27am
2
Hi, @Hasa
This is forum for supporting Develop Tools related topics.
Regarding to your question, recommend to ask in “CUDA Programming” forum to get better support. Thanks !
1 Like