#include <BlobResult.h>
Public Member Functions | |
void | AddBlob (CBlob *blob) |
CBlobResult () | |
CBlobResult (IplImage *source, IplImage *mask, uchar backgroundColor) | |
CBlobResult (const CBlobResult &source) | |
void | ClearBlobs () |
void | Filter (CBlobResult &dst, int filterAction, funcio_calculBlob *evaluador, int condition, double lowLimit, double highLimit=0) |
void | Filter (CBlobResult &dst, int filterAction, funcio_calculBlob *evaluador, int condition, double lowLimit, double highLimit=0) const |
CBlob | GetBlob (int indexblob) const |
CBlob * | GetBlob (int indexblob) |
void | GetNthBlob (funcio_calculBlob *criteri, int nBlob, CBlob &dst) const |
double | GetNumber (int indexblob, funcio_calculBlob *evaluador) const |
int | GetNumBlobs () const |
double_stl_vector | GetSTLResult (funcio_calculBlob *evaluador) const |
CBlobResult | operator+ (const CBlobResult &source) const |
CBlobResult & | operator= (const CBlobResult &source) |
void | PrintBlobs (char *nom_fitxer) const |
virtual | ~CBlobResult () |
Destructor. | |
Protected Attributes | |
Blob_vector | m_blobs |
Private Member Functions | |
void | DoFilter (CBlobResult &dst, int filterAction, funcio_calculBlob *evaluador, int condition, double lowLimit, double highLimit=0) const |
Does the Filter method job. | |
void | RaiseError (const int errorCode) const |
Classe que conté un conjunt de blobs i permet extreure'n propietats o filtrar-los segons determinats criteris. Class to calculate the blobs of an image and calculate some properties on them. Also, the class provides functions to filter the blobs using some criteria.
Definition at line 76 of file BlobResult.h.
constructor estandard, crea un conjunt buit de blobs Standard constructor, it creates an empty set of blobs
Definition at line 48 of file BlobResult.cpp.
CBlobResult::CBlobResult | ( | IplImage * | source, |
IplImage * | mask, | ||
uchar | backgroundColor | ||
) |
constructor a partir d'una imatge Image constructor, it creates an object with the blobs of the image
Definition at line 94 of file BlobResult.cpp.
CBlobResult::CBlobResult | ( | const CBlobResult & | source | ) |
constructor de cōpia Copy constructor
Definition at line 134 of file BlobResult.cpp.
CBlobResult::~CBlobResult | ( | ) | [virtual] |
Destructor.
Definition at line 178 of file BlobResult.cpp.
void CBlobResult::AddBlob | ( | CBlob * | blob | ) |
Afegeix un blob al conjunt Adds a blob to the set of blobs
Definition at line 305 of file BlobResult.cpp.
void CBlobResult::ClearBlobs | ( | ) |
Elimina tots els blobs de l'objecte Clears all the blobs of the class
Definition at line 828 of file BlobResult.cpp.
void CBlobResult::DoFilter | ( | CBlobResult & | dst, |
int | filterAction, | ||
funcio_calculBlob * | evaluador, | ||
int | condition, | ||
double | lowLimit, | ||
double | highLimit = 0 |
||
) | const [private] |
Does the Filter method job.
Definition at line 590 of file BlobResult.cpp.
void CBlobResult::Filter | ( | CBlobResult & | dst, |
int | filterAction, | ||
funcio_calculBlob * | evaluador, | ||
int | condition, | ||
double | lowLimit, | ||
double | highLimit = 0 |
||
) |
Retorna aquells blobs que compleixen les condicions del filtre en el destination Filters the blobs of the class using some property
Definition at line 561 of file BlobResult.cpp.
void CBlobResult::Filter | ( | CBlobResult & | dst, |
int | filterAction, | ||
funcio_calculBlob * | evaluador, | ||
int | condition, | ||
double | lowLimit, | ||
double | highLimit = 0 |
||
) | const |
Definition at line 499 of file BlobResult.cpp.
CBlob CBlobResult::GetBlob | ( | int | indexblob | ) | const |
Retorna el blob enčssim Gets the n-th blob of the class ( without sorting )
Definition at line 718 of file BlobResult.cpp.
CBlob * CBlobResult::GetBlob | ( | int | indexblob | ) |
Definition at line 725 of file BlobResult.cpp.
void CBlobResult::GetNthBlob | ( | funcio_calculBlob * | criteri, |
int | nBlob, | ||
CBlob & | dst | ||
) | const |
Retorna l'enčssim blob segons un determinat criteri Sorts the blobs of the class acording to some criteria and returns the n-th blob
Definition at line 763 of file BlobResult.cpp.
double CBlobResult::GetNumber | ( | int | indexBlob, |
funcio_calculBlob * | evaluador | ||
) | const |
Calcula un valor sobre un blob de la classe Computes some property on one blob of the class
Definition at line 439 of file BlobResult.cpp.
int CBlobResult::GetNumBlobs | ( | ) | const [inline] |
Retorna el total de blobs Gets the total number of blobs
Definition at line 147 of file BlobResult.h.
double_stl_vector CBlobResult::GetSTLResult | ( | funcio_calculBlob * | evaluador | ) | const |
Calcula un valor sobre tots els blobs de la classe retornant un std::vector<double> Computes some property on all the blobs of the class
Definition at line 390 of file BlobResult.cpp.
CBlobResult CBlobResult::operator+ | ( | const CBlobResult & | source | ) | const |
operador + per concatenar dos CBlobResult Addition operator to concatenate two sets of blobs
Definition at line 266 of file BlobResult.cpp.
CBlobResult & CBlobResult::operator= | ( | const CBlobResult & | source | ) |
operador = per a fer assignacions entre CBlobResult Assigment operator
Definition at line 210 of file BlobResult.cpp.
void CBlobResult::PrintBlobs | ( | char * | nom_fitxer | ) | const |
Escriu els blobs a un fitxer Prints some features of all the blobs in a file
Definition at line 922 of file BlobResult.cpp.
void CBlobResult::RaiseError | ( | const int | errorCode | ) | const [private] |
Funciķ per gestionar els errors Function to manage the errors
Definition at line 870 of file BlobResult.cpp.
Blob_vector CBlobResult::m_blobs [protected] |
Vector amb els blobs Vector with all the blobs
Definition at line 168 of file BlobResult.h.