|
Defines |
#define | PIXEL_BLACK 0 |
#define | MAX_DIFF_VALUE 255 |
#define | WIDTH_SCALING 0.6 |
#define | HEIGHT_SCALING 0.6 |
#define | MIN_ENERGY 0.5 |
#define | MIN_ENERGY_MOVE 0.2 |
#define | SQUAREROOT(x) ((x) ? (float) sqrt((x)*(x)) : 0.f) |
Functions |
MrElementsDetector * | mr_elements_detector_new () |
void | mr_elements_detector_free (void *o) |
void | mr_elements_detector_clear (MrElementsDetector *ed) |
short int | mr_elements_detector_origin (MrElementsDetector *ed, unsigned int pos) |
unsigned int | mr_elements_detector_size (MrElementsDetector *ed, unsigned int pos) |
static short int | create_black_pattern (MrElementsDetector *ed, unsigned int w, unsigned int h) |
static int | diff_pattern (MrElementsDetector *ed) |
static short int | elements_detector_one_line (MrElementsDetector *ed, unsigned int pos, short int scale) |
short int | mr_elements_detector (MrImage *image, MrScore *score, MrElementsDetector *ed) |
static int | elements_minx (MrVector *elts, int fromx, int endx) |
float | mr_elements_detector_match (MrElementsDetector *model, unsigned int posm, MrElementsDetector *object, unsigned int poso, float scale_factor) |