bioinspired opencv_contrib
I'm trying to compile some sample code that uses the bio inspired functionality of OpenCV.
When I compile, I get the error 'createRetina': is not a member of 'cv::bioinspired'.
Which header is createRetina supposed to be in?
Answer:
As mentioned below, use cv::bioinspired::Retina::create() to allocate memory for the retina. Once that was done, I started getting an error related to private.hpp, so I commented out the #include "private.hpp" in precomp.hpp.
Now everything compiles and links just fine. :)
you should not use precomp.hpp at all, that's already an "internal" header.
again, use "opencv2/bioinspired.hpp", and use the proper include path (like /usr/local/include), not the headers from the src distribution
my guess is: the way you setup your project is somewhat broken
It's the source files of the bioinspired module themselves which contain #include "precomp.hpp"
ooh, usually you would compile the bioinspired module into a library, and use it's "official" headers to use that.
i assume, you're trying with "copy the cpp files into my project", like an unofficial shortcut ?
yea, ok, whatever. just know, that it's not the way you should do it (and that this receipe won't work with more complex modules) ;)