<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; 3.4 (tried on opencv 3.4.3 and opencv 4.0.1)</li>
<li>Operating System / Platform =&gt; Linux 64 bit (debian based -- ubunut, kubuntu, xubuntu, also tried on arch linux)</li>
<li>Compiler =&gt; gcc-6 g++6</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">This seems to be a similar issue to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162883710" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/6742" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/6742/hovercard" href="https://github.com/opencv/opencv/issues/6742">#6742</a></p>
<p dir="auto">If two CUDA streams in two different threads try to simultaneously use apply() to a cv::cuda::Filter created via e.g.  (for doing edge detection with gabor filters):<br>
auto filtptr = cv::cuda::createLinearFilter( CV_32FC1, CV_32FC1, cv::getGaborKernel(cv::Size(ksize_pix, ksize_pix), sig_pix, th, lm_pix, gamma, psi) );</p>
<p dir="auto">Then it results in corrupted output in one or both of the outputs.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">See example code in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="162883710" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/6742" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/6742/hovercard" href="https://github.com/opencv/opencv/issues/6742">#6742</a>, but this bug behaviour occurs if the filter is a createLinearFilter as well.</p>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; :3.2</li>
<li>Operating System / Platform =&gt; :ubuntu18.04</li>
<li>Compiler =&gt; :python3</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">Hello there,<br>
I was using this demo to calibrate my own camera while the result showed a unacceptable drifts from the truth.<br>
OpenCV version 3.2.0<br>
Python version 3.6.7<br>
The input images series is like below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/58236705-0c733300-7d76-11e9-8c6a-61a269b1be92.png"><img src="https://user-images.githubusercontent.com/44866138/58236705-0c733300-7d76-11e9-8c6a-61a269b1be92.png" alt="Infrared1-00" style="max-width: 100%;"></a><br>
and the circle detected images is<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44866138/58236736-1e54d600-7d76-11e9-9e0a-545cf062ce65.png"><img src="https://user-images.githubusercontent.com/44866138/58236736-1e54d600-7d76-11e9-9e0a-545cf062ce65.png" alt="outimg1" style="max-width: 100%;"></a></p>
<p dir="auto">There is one problem I am not that sure is, the asymmetric calibration target I used has a differently distance between the columns and rows which could be seen clearly from my code</p>
<p dir="auto"><a href="https://github.com/opencv/opencv/files/3210974/longerCalibrate.txt">longerCalibrate.txt</a><br>
Finally, the result of intrinsic calibration is</p>
<p dir="auto">camera_matrix:<br>
[451.6701112652139, 0.0, 777.2304056394676]<br>
[0.0, 469.37232191132745, 321.2437268938009]<br>
[0.0, 0.0, 1.0]<br>
dist_coeff:<br>
[-0.1705178885286108, 0.013773972732487686, 0.0012506566857040959, 0.004203751684462792,<br>
0.006202670677996154]</p>
<p dir="auto">but actually, the intrinsic matrix should be<br>
9.543190920000000000e+02 0.000000000000000000e+00 6.399660030000000000e+02 0.000000000000000000e+00 9.543190920000000000e+02 3.634058530000000000e+02 0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00</p>
<p dir="auto">this is correct because the resolution of these pictures is 1280x720, the second intrinsic matrix is more reasonable</p>
<p dir="auto">So the question is, is there anything wrong with my code or is it a kernel problem of the opencv function?</p>
<p dir="auto">Much appreciation</p>
<h5 dir="auto">Steps to reproduce</h5>