Ask Your Question

drcurry's profile - activity

2019-03-20 12:11:22 -0500 answered a question Looking for ways to speed up pixel scanning

So I managed to ultilize the cv::findNonZero() function, to get the coordinates of the white pixels. cv::Mat A; std::

2019-03-13 20:20:21 -0500 edited question Looking for ways to speed up pixel scanning

Looking for ways to speed up pixel scanning So I am trying to implement a pixel scanner, where I go through every pixel

2019-03-13 20:18:25 -0500 asked a question Looking for ways to speed up pixel scanning

Looking for ways to speed up pixel scanning So I am trying to implement a pixel scanner, where I go through every pixel

2018-07-27 10:34:02 -0500 marked best answer Transparent API performance discrepancy

Hello everyone, I'm using OpenCV's TAPI, I have 2 different computers. Laptop1 has an Radeon 8690m with OpenCL C 1.1. Laptop2 has a GTX 1050 (384.130 power setting set to prefer GPU) with OpenCL C 1.2. Both laptops have been compiled with the exact same setting except for the addition of CUDA 8 on laptop2. Both are also running the exact same code on the same version of OpenCV(3.4.2-dev) on Ubuntu 16.04. The OCL module recognizes both GPUs.

Image I'm loading in is a 2048x1536 color

code snippet:

cv::Mat m = cv::imread("img.jpg");//2048x1536
cv::UMat u;

while(1){
   m.copyTo(u)
   startTime();
   cv::GaussianBlur(u, u, cv::Size(3x3), 3.5)
   endTime();
}

on Laptop 1 I get ~24ms. On Laptop2 I get ~34ms. I let the loop run for a couple of seconds. Now the fun begins. On Laptop2 if I change GaussianBlur to use m instead of u my time is ~20ms, while Laptop 1 gets worse performance as expected (complete opposites). Is there some implementation under the hood that could be affecting the performance or is there some other issue? Thanks

2018-07-27 10:33:44 -0500 received badge  Teacher (source)
2018-07-27 10:23:36 -0500 received badge  Self-Learner (source)
2018-07-27 10:20:23 -0500 answered a question Transparent API performance discrepancy

The discrepancy was caused by my timer function. It had nothing to do with OpenCV. The timer function I used was not chr

2018-07-25 10:29:27 -0500 commented question Transparent API performance discrepancy

So I changed how I went about performing the Gaussian blur on Laptop2. Originally I was passing in a 3 channel image 204

2018-07-25 10:28:57 -0500 commented question Transparent API performance discrepancy

So I changed how I went about performing the Gaussian blur on Laptop2. Originally I was passing in a 3 channel image 204

2018-07-25 10:28:28 -0500 commented question Transparent API performance discrepancy

So I changed how I went about performing the Gaussian blur on Laptop2. Originally I was passing in a 3 channel image 204

2018-07-25 06:22:55 -0500 commented question Transparent API performance discrepancy

Sure there is a convert Mat->UMat, but I'm timing the actual computation which shouldn't be affected by memory transf

2018-07-24 15:47:53 -0500 commented question Transparent API performance discrepancy

I checked gpu utilization using nvidia xsever both versions of code used about ~40% and pcie bandwidth ~6% utilization.

2018-07-24 15:34:50 -0500 commented question Transparent API performance discrepancy

I didnt, my outputs for time was the first couple were large then the values became stable. So I took the average of the

2018-07-24 14:22:07 -0500 asked a question Transparent API performance discrepancy

Transparent API performance discrepancy Hello everyone, I'm using OpenCV's TAPI, I have 2 different computers. Laptop1 h

2018-07-16 20:53:53 -0500 edited question OpenCL context does not get created

OpenCL context does not get created Don't really know how to word it, but long story short, I have built OpenCV from sou

2018-07-16 20:52:13 -0500 received badge  Editor (source)
2018-07-16 20:52:13 -0500 edited question OpenCL context does not get created

OpenCL context does not get created Don't really know how to word it, but long story short, I have built OpenCV from sou

2018-07-16 19:56:59 -0500 asked a question OpenCL context does not get created

OpenCL context does not get created Don't really know how to word it, but long story short, I have built OpenCV from sou