OpenCV: 3D GPU Matrix

I was wondering if it is possible to load a three-dimensional matrix into gpu to work with it? I have a sequence of images having the same resolution (about 100 frames); Now I want to load them into gpu using the Openup.upload function and do some calculations.

A simple approach would be to simply create a GPuMat for each frame and load them sequentially, but I was wondering if there is a more elegant way.

+3
source share
1 answer

Depending on how your algorithm works, you can simply concatenate the images in one of the existing image sizes instead of trying to create a ā€œ3Dā€ image. For example, if you had two frames with 640x480 images, make one 640x960 image as the image to be sent to the GPU.

+1
source

All Articles