Main Page | Data Structures | File List | Data Fields | Globals

mr_staves_detector.c File Reference

#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)

Define Documentation

#define CHECK_ERROR a,
b,
 )     (a > b ? ( (a - b) > a*e || (a - b) > b*e ? 1 : 0 ) : ( (b - a) > a*e || (b - a) > b*e ? 1 : 0))
 

#define ERROR_P   0.30
 

#define GET_LINE l,
 )     (*GET_LINE_P(l,p))
 

#define GET_LINE_P l,
 )     ((MrLine*) mr_vector_get(l,p))
 


Function Documentation

static short int group_lines MrVector lines,
int  i,
int  j,
int  k,
int  spacing
[static]
 

short int mr_staves_block_detector MrScore score,
MrImage img
 

Split staves into blocks

short int mr_staves_detector MrScore score,
MrVector lines
 

Detect staves from the set of horizontal lines


Generated on Sun Apr 9 17:29:41 2006 for MusicReco by  doxygen 1.4.4