Ask Your Question

MrAI's profile - activity

2016-04-17 04:22:22 -0600 commented question How to build opencv 3.1 with CUDA 7.5 and contrib modules?

By CMake errors I meant missing libs and such. Like when you add TBB and asks for it's location.

2016-04-15 05:07:50 -0600 asked a question How to build opencv 3.1 with CUDA 7.5 and contrib modules?

System:

  • Windows 8.1 Pro 64 bit
  • Visual Studio 2013 Professional
  • CUDA Toolkit 7.5 64 bit
  • Newest version of OpenCV master and contrib source files from the official git repo

I read just about every tutorial on the subject, but they seem to be really out of date. The newest ones I could find where posted around 2014 for OpenCV 2.4. Even after reading all that was available, resolving all the errors that CMake made, there was not a single instance that Visual Studio would build OpenCV with CUDA. Without CUDA it will go trough, but the moment I add CUDA to the mix, the build fails every time.

All the error and warning types:

  1. Warning 2 warning LNK4044: unrecognized option '/LC:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/lib/x64'; ignored C:\Users\newba_000\Documents\OpenCVSources\OpenCV_built\modules\imgproc\LINK opencv_imgproc
  2. Error 3 error LNK1104: cannot open file '....\lib\Debug\opencv_core310d.lib' C:\Users\newba_000\Documents\OpenCVSources\OpenCV_built\modules\imgproc\LINK opencv_imgproc
  3. Error 1 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_core
  4. Error 4 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_cudaarithm

CUDA works for sure. Tested it with NVIDIA sample code and with some OpenCV functions using OpenCV Nuget package.

2016-04-15 04:31:39 -0600 received badge  Enthusiast
2016-04-04 06:43:47 -0600 commented answer SLIC error

Well after days of some next level wizardy, google smiled upon me and led me to the OpenCV NuGet package (linked in the original question), which has everything that OpenCV has to offer.

2016-04-04 06:04:23 -0600 commented answer SLIC error

Thank you berak! I was hoping for a better outcome, but at least the culprint was found. Could you post the bug report? Since I couldn't compile OpenCV on my own, I can't really give as detailed of a description as you can.

2016-04-04 06:00:14 -0600 received badge  Supporter (source)
2016-04-04 06:00:08 -0600 received badge  Scholar (source)
2016-04-04 02:12:12 -0600 received badge  Student (source)
2016-04-03 14:54:08 -0600 asked a question SLIC error

Enviorement: Win 8.1 Professional Visual Studio 2013 Professional 2013 Version 12.0.406929.00 Update 5 OpenCV: Opencv CUDA Contrib vc12 Debug Build 3.1.0

Error in: module: ximgproc -> Superpixels Ptr<superpixelslic> cv::ximgproc::createSuperpixelSLIC ( InputArray image, int algorithm = SLICO, int region_size = 10, float ruler = 10.0f )

image description

Description: I get this error every time, no matter what the input image type may be (png, jpg,..). Using imread with CV_LOAD_IMAGE_COLOR or CV_LOAD_IMAGE_GRAYSCALE, doesn't make a difference. I tried giving the function invalid parameters to see where does the error occur like setting the algorithm parameter to 300, and the assertion fails, as it should. Checked the Q&A here and looked for any error ticket on the github page to no prevail.

The suprising thing is, that the other 2 types of Superpixel segmentation algorithms, SEED and LSC, work just fine.

How could I resolve this error?