OpenCV Error: GPU API call <out of memory> in gpumat.cpp
Hello I have build an VS 2010 project in which I am trying to run a gpu algorith. I have no build or link erros but when I am trying to run the exe returns the following error:
OpenCV Error: GPU API call (out of memory) in unknown function, file ../../../modules\core\src\gpumat.cpp line 1415 error: ......\modules\core\src\gpumat.cpp:1415: error: <-217> out of memory
Also I have added the new dlls after the build with cuda support to the debug file.
I am using Win 7, CUDA toolkit 5.5 and OpenCV 2.4.6.
Thanks in advance.
Out of memory
means that you don't have enough memory to allocate data. What card and what algorithm do you use? Check that you don't have memory leaks.Thanks for answering. I have GeForce 9600 GT. I am using an algorithm for disparity estimation and I am testing it in two images of size 640x480. Also I am using the main that the opencv offers in samples folder.
I run the algorithm with a smaller image (384x288 ) and it worked