|
HowToUse
How to use cvBlob.
0 IntroductionThere is two ways to make use of cvBlob: the good one and the easy one. 1 Including files in your projectJust copy cvblob.h, cvblob.cpp, cvlabel.cpp, cvcontour.cpp and cvtrack.cpp in your project and put #include "cvblob.h" in your code. cvBlob uses OpenCV so, it must be installed in your computer and configured in your project. 2 Linking with the libraryCompile cvBlob to build a library file (read HowToCompile). Put #include "cvblob.h" in your code. And configure your project to link with the cvBlob library (generated in the compilation step). Using g++g++ -I/home/grendel/src/cvblob/cvBlob -lcv -lcxcore -lhighgui sample.cpp /home/grendel/src/cvblob/lib/libcvblob.a -o sample Where /home/grendel/src/cvblob/cvBlob is the path of cvblob.h, and /home/grendel/src/cvblob/lib the path of libcvblob.a. |
Sign in to add a comment