Ask Your Question

jaybo_nomad's profile - activity

2018-05-25 12:33:37 -0600 asked a question Does dnn::blobFromImage accept a GpuMat as input?

Does dnn::blobFromImage accept a GpuMat as input? It's not quite clear from the documentation whether dnn::blobFromImage

2016-11-10 15:48:04 -0600 answered a question Slow initial call in a batch of cuda sparse pyrLK optical flow operations.

I'd guess you're allocating a GpuMat at the start of the loop and then reusing it in subsequent iterations of your loop. I've found that a critical optimization to CUDA operations is to preallocate all GpuMats and never allocate them on the stack. Similarly, don't resize a GpuMat once allocated. CUDA itself seems blindingly fast, but GPU memory allocations not so much.

2016-04-06 01:09:05 -0600 commented question Cannot get OpenCV3.0 cuda::calcHist() to return correct values

Did you ever get this to work? I'm experiencing the same problem in OpenCV 3.1. One clue is that the Mat allocated to return the data is CV_32SC1 (which matches the documentation) but I'm finding the return datatype is actually an integer Mat.

2016-01-08 21:03:10 -0600 received badge  Supporter (source)