depth first search

“We can only see a short distance ahead, but we can see plenty there that needs to be done."

Tag: opencv

OpenCV and Bumblebee2 Stereo

Well, I just finished adding support for a Bumblebee2 camera to OpenCV. I wish I could give the code away, but it depends on Triclops, Point Grey’s proprietary library and I don’t really know how to submit a patch to OpenCV anyway. For those of you who are interested in accessing stereo vision capabilities for [...]

Weird Compiler Error of the Day

I got the following error when trying to compile the latest svn version of opencv: error: invalid controlling predicate A quick Google search yielded this gem of a compiler bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38650. The offending loop: #ifdef _OPENMP #pragma omp for schedule(static, 1) #endif /* _OPENMP */ for( i = first; (i < first + count) && [...]

OpenCV and Python

You may have come across the following issue with OpenCV Python bindings: image = cv.cvCreateImage(size, cv.IPL_DEPTH_8U, 3) image.imageData = data # set some data Trying to set the “data” of an OpenCV image directly fails. The problem is in the underlying SWIG code that attempts to make the imageData field available for writing at the [...]

My First SWIG Experience

A day of reading the SWIG manual and grokking the examples resulted in the following interface file. What does it do? It adds this to Python. %module blobs   %exception { try { $action } catch (…) { return NULL; } }     %include "exception.i"   %typemap(in) IplImage * (IplImage header){ void * vptr; [...]