#include <racdetect.h>
Public Member Functions | |
Rac () | |
~Rac () | |
void | setSize (const int width, const int height) |
Set the image size Based on width and height of the image, it allocs memory for the process. | |
void | find (BYTE *imgSrc) |
Find the conex component of the image and classify using the label's list. | |
void | findVertices () |
Based on the label's list, finds the correspondent vertices for the pattern. | |
void | reset () |
Reset the labels list to start finding everything again. | |
Public Attributes | |
RacLabelList | labelList |
Label's list with all the labels found in the image. | |
int * | imgLabel |
bool | ok |
Private Member Functions | |
void | findRecur (int x, int y, int label, unsigned int depth) |
Recursive method to find the conex components. | |
int | chainHull (RacPixelArray &P, int n, RacPixelArray &H) |
Find the chain hull. | |
int | isLeft (RacPixel P0, RacPixel P1, RacPixel P2) |
bool | filterVertices (RacPixelArray &verticesArray, int size, RacPixel *vertices) |
Reduce the vertices to just for. | |
float | dot (RacPixel &a, RacPixel &b, RacPixel &c) |
DotProduct (ab).(cb). | |
Private Attributes | |
int | width |
int | height |
BYTE * | img |
RacLabelListItr * | labelItr |
unsigned int | nextPoolPixel |
RacPixelArray | pool |
Pixel's pool to avoid allocating too many times. | |
Static Private Attributes | |
int | label |
Rac has methods who finds the conex components, finds the convex hull, and call a method who finds the pattern and the correspondent pixels
Definition at line 60 of file racdetect.h.
|
|
|
|
|
Find the chain hull.
|
|
DotProduct (ab).(cb).
|
|
Reduce the vertices to just for.
|
|
Find the conex component of the image and classify using the label's list.
|
|
Recursive method to find the conex components.
|
|
Based on the label's list, finds the correspondent vertices for the pattern.
|
|
|
|
Reset the labels list to start finding everything again.
|
|
Set the image size Based on width and height of the image, it allocs memory for the process. It must be called before the others methods |
|
Definition at line 117 of file racdetect.h. |
|
Definition at line 118 of file racdetect.h. |
|
Definition at line 83 of file racdetect.h. |
|
Definition at line 115 of file racdetect.h. |
|
Definition at line 120 of file racdetect.h. |
|
Label's list with all the labels found in the image.
Definition at line 82 of file racdetect.h. |
|
Definition at line 122 of file racdetect.h. |
|
Definition at line 84 of file racdetect.h. |
|
Pixel's pool to avoid allocating too many times.
Definition at line 123 of file racdetect.h. |
|
Definition at line 116 of file racdetect.h. |