My favorites | Sign in
Logo
                
Search
for
Updated Oct 28, 2009 by grendel.ccl
Labels: Featured, Phase-Deploy
HowToUse  
How to use cvBlob.

0 Introduction

There is two ways to make use of cvBlob: the good one and the easy one.

1 Including files in your project

Just 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 library

Compile 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
Hosted by Google Code