#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mr_lib.h"
Defines | |
#define | ERROR_P 0.30 |
#define | CHECK_ERROR(a, b, e) (a > b ? ( (a - b) > a*e || (a - b) > b*e ? 1 : 0 ) : ( (b - a) > a*e || (b - a) > b*e ? 1 : 0)) |
#define | GET_LINE_P(l, p) ((MrLine*) mr_vector_get(l,p)) |
#define | GET_LINE(l, p) (*GET_LINE_P(l,p)) |
Functions | |
static short int | group_lines (MrVector *lines, int i, int j, int k, int spacing) |
short int | mr_staves_detector (MrScore *score, MrVector *lines) |
short int | mr_staves_block_detector (MrScore *score, MrImage *img) |
|
|
|
|
|
|
|
|
|
|
|
Split staves into blocks |
|
Detect staves from the set of horizontal lines |