Ask Your Question

Leszek's profile - activity

2013-11-12 02:47:06 -0600 received badge  Nice Answer (source)
2013-11-11 06:47:36 -0600 received badge  Teacher (source)
2013-11-11 04:29:36 -0600 answered a question Ambiguous symbol error with Windows 8 SDK and OPENCV

This was a problem with having using namespace cv in a a header, and then including windows headers. This pulled cv::ACCESS_MASK into global scope where it clashed with the already global Windows-defined ACCESS_MASK.

I've fixed this and submitted a PR: https://github.com/Itseez/opencv/pull/1774

2013-07-17 03:28:12 -0600 received badge  Nice Question (source)
2012-10-10 15:38:06 -0600 commented answer Python wrapper for C++ function taking cv::Mat arguments

Something like Boost::Python may be a good place to start, if you're interested.

2012-10-09 02:26:17 -0600 received badge  Student (source)
2012-10-08 17:37:11 -0600 commented answer Hough transformation on given points

"If most of your detected edge pixels are on the line you seek, you could do a cv::lineFit" I really wouldn't advise this in this case, it's very non-robust to outliers (this robustness is the whole point of using a voting scheme like Hough lines)

2012-10-08 17:34:55 -0600 received badge  Editor (source)
2012-10-08 17:31:44 -0600 asked a question Python wrapper for C++ function taking cv::Mat arguments

How can I write my own python wrapper function for a C++ function, which does the automatic numpy->cv::Mat conversion for its arguments in the same way as the OpenCV python wrappers do?

As near as I can tell, the (generated) OpenCV python wrappers use pyopencv_to and pyopencv_from from modules/python/cv2.cpp. Should I just copy these (with appropriate licensing)? Or is there a library I can link against which provides such helper functions?