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

mr_lag.h File Reference

#include <mr_vector.h>
#include <mr_image.h>
#include <mr_lag_segment.h>
#include <mr_lag_section.h>
#include <mr_lag_junction.h>
#include <mr_lag_component.h>
#include <mr_line.h>

Go to the source code of this file.

Data Structures

struct  MrLag
 the LAG More...

Processing on the lag

short int mr_lag_extract_segments (MrLag *, MrImage *)
void mr_lag_build_lag (MrLag *lag)
void mr_lag_filament_detection (MrLag *lag)
void mr_lag_build_chain (MrLag *lag)
void mr_lag_build_staff_line (MrLag *lag, MrVector *lines)
void mr_lag_remove_filaments_in_staff_line (MrLag *lag, unsigned int y)
void mr_lag_remove_filaments_in_staff_lines (MrLag *lag, MrVector *lines)
void mr_lag_bar_detection (MrImage *image, MrLine *bb)
void mr_lag_extract_component (MrLag *lag, MrVector *components)

Auxiliary methods

void mr_lag_add_segment (MrLag *lag, MrLagSegment *segment, unsigned int j)
MrLagSectionmr_lag_add_section (MrLag *lag, MrLagSegment *segment)
MrLagJunctionmr_lag_create_junction (MrLag *lag, MrLagSection *left_section, MrLagSection *right_section)
unsigned int length_chain (MrVector *chain)
unsigned int mr_lag_chain_horizontal_line (MrVector *chain)
void mr_lag_remove_sections_on_image (MrLag *lag, MrImage *img)
void mr_lag_remove_section_on_image (MrLag *lag, MrLagSection *section, MrImage *img)
void mr_lag_remove_segment_on_image (MrLag *lag, MrLagSegment *segment, MrImage *img)

Typedefs

typedef MrLag MrLag

Functions

MrLagmr_lag_new (unsigned int w, unsigned int h)
void mr_lag_free (void *p)


Typedef Documentation

typedef struct MrLag MrLag
 


Function Documentation

unsigned int length_chain MrVector chain  ) 
 

length of a chain chain : vector of section

MrLagSection* mr_lag_add_section MrLag lag,
MrLagSegment segment
 

Add a new section to the LAG : section with for first segment 'segment'

void mr_lag_add_segment MrLag lag,
MrLagSegment segment,
unsigned int  j
 

Add a segment to the LAG : segment extract from the column j

void mr_lag_bar_detection MrImage image,
MrLine bb
 

void mr_lag_build_chain MrLag lag  ) 
 

Link filaments to create chain

void mr_lag_build_lag MrLag lag  ) 
 

Build sections and jonctions

void mr_lag_build_staff_line MrLag lag,
MrVector lines
 

Build lines from chain and group them to form score lines : vector of vector of lines

unsigned int mr_lag_chain_horizontal_line MrVector chain  ) 
 

return the y coordinate of the horizontal line associate to a chain. Compute by using the mean of each component of the chain

MrLagJunction* mr_lag_create_junction MrLag lag,
MrLagSection left_section,
MrLagSection right_section
 

Add a junction between two section

void mr_lag_extract_component MrLag lag,
MrVector components
 

Group section by connected component

short int mr_lag_extract_segments MrLag ,
MrImage
 

Extract the segments from an image

void mr_lag_filament_detection MrLag lag  ) 
 

Mark section as filament according to their height and length

void mr_lag_free void *  p  ) 
 

Destroy the lag structure : Destroys the segment, section, junction, ...

MrLag* mr_lag_new unsigned int  w,
unsigned int  h
 

Init the structure for the lag for an image of size (w, h)

void mr_lag_remove_filaments_in_staff_line MrLag lag,
unsigned int  y
 

remove filament around line at position y

void mr_lag_remove_filaments_in_staff_lines MrLag lag,
MrVector lines
 

remove filaments around a set of group of horizontal lines lines : a vector of vector of lines

void mr_lag_remove_section_on_image MrLag lag,
MrLagSection section,
MrImage img
 

set the pixels of the section to 255

void mr_lag_remove_sections_on_image MrLag lag,
MrImage img
 

set the pixels of the sections with removed = 2 to 255

void mr_lag_remove_segment_on_image MrLag lag,
MrLagSegment segment,
MrImage img
 

set on the image the pixel of the segment to 255


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