#include "blobresult.h"
#include "blobextraction.h"
Go to the source code of this file.
Defines | |
#define | B_CONNECTIVITAT_8 |
Indica si la connectivitat es a 8 (si es desactiva es a 4). | |
#define | IMATGE_CICLICA_VERTICAL 1 |
#define | IMATGE_CICLICA_HORITZONTAL 0 |
#define | PERIMETRE_DIAGONAL (1.41421356237310 - 2) |
#define | SQRT2 1.41421356237310 |
#define | PIXEL_EXTERIOR 0 |
Functions | |
bool | BlobAnalysis (IplImage *inputImage, uchar threshold, IplImage *maskImage, bool borderColor, bool findmoments, blob_vector &RegionData) |
Extreu els blobs d'una imatge. | |
int * | NewSubsume (int *subsumed, int index_subsume) |
Reallocata el vector auxiliar de blobs subsumats. | |
void | Subsume (blob_vector &RegionData, int HighRegionNum, int *SubsumedRegion, CBlob *blobHi, CBlob *blobLo, bool findmoments, int HiNum, int LoNum) |
Fusiona dos blobs. | |
double | GetExternPerimeter (int start, int end, int row, int width, int height, IplImage *imatgePerimetreExtern) |
Retorna el perimetre extern d'una run lenght. |
#define B_CONNECTIVITAT_8 |
Indica si la connectivitat es a 8 (si es desactiva es a 4).
Definition at line 14 of file BlobExtraction.cpp.
#define IMATGE_CICLICA_HORITZONTAL 0 |
si la imatge és cíclica horitzontalment (els blobs que toquen les vores dreta i esquerra no es consideren externs)
Definition at line 21 of file BlobExtraction.cpp.
#define IMATGE_CICLICA_VERTICAL 1 |
si la imatge és cíclica verticalment (els blobs que toquen les vores superior i inferior no es consideren externs)
Definition at line 18 of file BlobExtraction.cpp.
#define PERIMETRE_DIAGONAL (1.41421356237310 - 2) |
Definition at line 23 of file BlobExtraction.cpp.
#define PIXEL_EXTERIOR 0 |
#define SQRT2 1.41421356237310 |
Definition at line 24 of file BlobExtraction.cpp.
bool BlobAnalysis | ( | IplImage * | inputImage, | |
uchar | threshold, | |||
IplImage * | maskImage, | |||
bool | borderColor, | |||
bool | findmoments, | |||
blob_vector & | RegionData | |||
) |
Extreu els blobs d'una imatge.
Imatge amb el perimetre extern de cada pixel
Definition at line 53 of file BlobExtraction.cpp.
References PIXEL_EXTERIOR.
Referenced by CBlobResult::CBlobResult().
double GetExternPerimeter | ( | int | start, | |
int | end, | |||
int | row, | |||
int | width, | |||
int | height, | |||
IplImage * | imatgePerimetreExtern | |||
) |
Retorna el perimetre extern d'una run lenght.
Definition at line 1414 of file BlobExtraction.cpp.
int* NewSubsume | ( | int * | subsumed, | |
int | index_subsume | |||
) |
Reallocata el vector auxiliar de blobs subsumats.
Definition at line 1329 of file BlobExtraction.cpp.
void Subsume | ( | blob_vector & | RegionData, | |
int | HighRegionNum, | |||
int * | SubsumedRegion, | |||
CBlob * | blobHi, | |||
CBlob * | blobLo, | |||
bool | findmoments, | |||
int | HiNum, | |||
int | LoNum | |||
) |
Fusiona dos blobs.
Fusiona dos blobs i afegeix el blob les característiques del blob RegionData[HiNum] al blob RegionData[LoNum]. Al final allibera el blob de RegionData[HiNum]
Definition at line 1347 of file BlobExtraction.cpp.