2018-01-16 06:58:17 -0600 | received badge | ● Famous Question (source) |
2017-02-10 09:04:59 -0600 | received badge | ● Notable Question (source) |
2016-11-30 02:45:12 -0600 | received badge | ● Popular Question (source) |
2016-11-21 08:33:30 -0600 | received badge | ● Student (source) |
2016-05-29 18:44:32 -0600 | asked a question | cudalegacy not compile -- nppiGraphcut missing trying to build v3.1 opencv with cuda support. standard cmake. 2 Problems:
thanks |
2016-05-26 23:44:51 -0600 | answered a question | matchTemplate c++ exception first time only More Data: I spent the day compiling debug version of openCL [ v3.1 ] into static libraries. Here is what i have learned: * the problem i was stuck with -- matchTemplate crashing -- now works fine, no crash * but there is now an earlier crash long before any call to match Template. * I have tracked this thru to line 274 of opencl_core.cpp; * my program is calling cv::extractChannel to get channel zero of an RGB image [which looks just fine in ImageWatch]. this goes to useOpenCL which then calls HaveOpenCL which then calls opencl_check_fn which as you can see in the gifs declares the function clGetPlatformDs as not present and throws the memory fault. Here are the gifs: C:\fakepath\useOpenCL_1.GIF OpenCL C:\fakepath\haveOpenCL.GIF haveOpenCL C:\fakepath\opencl_check_fn.GIF check function A C:\fakepath\check_fn_B.GIF check function B C:\fakepath\check_fn_C_smoking_gun.GIF smoking gun I leave it to the opencl code gurus to figure out what this is crashing here, especially as it wasnt crashing using the non-debug libraries. |
2016-05-26 07:37:11 -0600 | received badge | ● Enthusiast |
2016-05-25 11:30:22 -0600 | commented question | matchTemplate c++ exception first time only my guess is that there is some var in matchTemplate or its subsidiarys that is not properly initialized which is why the first time use fails but after that it proceeds fine. i posted this question to see if one of the developers wanted to try and trace this. |
2016-05-25 11:29:09 -0600 | commented question | matchTemplate c++ exception first time only no opencl anywhere. |
2016-05-24 07:47:50 -0600 | commented question | matchTemplate c++ exception first time only a) how does one post code ? i tried using the 'preformatted text' button but the code got inserted without <cr> or formatting. Also why does the 2nd gif not get linked ? |
2016-05-24 07:29:24 -0600 | commented question | matchTemplate c++ exception first time only i do not understand why the 2nd gif is not showing ... i can show more code but i have 8,000 lines of code scattered over 5 modules and i cant post it all. |
2016-05-23 13:59:41 -0600 | commented question | matchTemplate c++ exception first time only The relevant code is in the screenshot -- matchTemplate only relies on the arguements passed, right?. both of the images also shown, so its not that the images are empty.. btw, the 'live' is the second frame -- the first provided the reference [template] image. |
2016-05-23 11:32:07 -0600 | received badge | ● Editor (source) |
2016-05-23 11:26:02 -0600 | asked a question | matchTemplate c++ exception first time only running video file with several thousand frames. matchTemplate crashes only on the first time i call it, then runs fine every time afterwards. first time called, Live and template are two different frames. attached screenshots of input images, error messages. have had this behavior for months -- sometimes shows up sometimes program runs without the crash. suggestions what i can look at, tweak, etc. C:\fakepath\Capture2.GIF(screenshot failed to capture green arrow showing matchTemplate was the culprit) and gets called from: |
2016-01-02 12:21:37 -0600 | asked a question | Visual Studio matchtemplate memory fault first call only` I am processing a set of >3000 images of same size changing template every 300 images. code snippet: also: rect = ( 250, 20, 1420, 1040); and resultH = 41; resultW = 501; the very first time thru the code, the call to matchTemplate throws a memory fault that i believe comes from combase.dll and references an address that is not in the space for any of the three matrices: cFrame, inTplate or Cresult. Also the sizes for the three matrices are consistent: cFrame 1080 rows X 1920 cols, inTplate 1040 rows X 1420 cols; Cresult is 41 rows X 501 cols. yes the first time inTplate is a region of cFrame; thereafter cFrame is the next image read in. answers coming back from matchTemplate are correct -- i have verified that the matching is correct. And the memory fault occurs ONLY on the very first call, not on any of the subsequent frames Am I doing something wrong or am i looking at a bug in OpenCV ? |