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

mr_elements_detector.h File Reference

#include <mr_vector.h>
#include <mr_image.h>
#include <mr_score.h>

Go to the source code of this file.

Data Structures

struct  MrElementsDetector

Typedefs

typedef MrElementsDetector MrElementsDetector

Functions

MrElementsDetectormr_elements_detector_new ()
void mr_elements_detector_free (void *o)
void mr_elements_detector_clear (MrElementsDetector *ed)
unsigned int mr_elements_detector_size (MrElementsDetector *ed, unsigned int pos)
short int mr_elements_detector_origin (MrElementsDetector *ed, unsigned int pos)
short int mr_elements_detector (MrImage *image, MrScore *score, MrElementsDetector *ed)
float mr_elements_detector_match (MrElementsDetector *model, unsigned int posm, MrElementsDetector *object, unsigned int poo, float scale_factor)


Typedef Documentation

typedef struct MrElementsDetector MrElementsDetector
 


Function Documentation

short int mr_elements_detector MrImage image,
MrScore score,
MrElementsDetector ed
 

Extracts notes from an image where lines was previously detected and grouped in a partition.

void mr_elements_detector_clear MrElementsDetector ed  ) 
 

Destroy elements previously detected.

void mr_elements_detector_free void *  o  ) 
 

Destroy a notes detector

float mr_elements_detector_match MrElementsDetector model,
unsigned int  posm,
MrElementsDetector object,
unsigned int  poo,
float  scale_factor
 

Match a graphic music element. This will be soon moved in another module.

MrElementsDetector* mr_elements_detector_new  ) 
 

Creates a new notes detector

short int mr_elements_detector_origin MrElementsDetector ed,
unsigned int  pos
 

Translate elements in x so the left most element will have its x coordinate to 0.

unsigned int mr_elements_detector_size MrElementsDetector ed,
unsigned int  pos
 

Returns the number of graphics elements


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