I was wondering if it is possible to upload a 3-dimensional matrix to the gpu to work with it? I have a sequence of images all having the same resolution (around 100 frames); now I want to upload them to the gpu using OpenCV’s .upload function and do a few computations on them.
The simple approach would be to just create a GPuMat for each frame and upload them sequentially but I was wondering if there is a more elegant way.
Depending upon how your algorithm works, you might be able to simply concatenate the images in one of the existing image dimensions instead of trying to create a “3D” image. For instance, if you had two frames of 640×480 images, make a single 640×960 image as your image to be sent to the GPU.