#include <mr_vector.h>
#include <mr_line.h>
Go to the source code of this file.
Data Structures | |
struct | MrLagSection |
Section in the LAG. More... | |
Defines | |
#define | LAG_SECTION_WIDTH(s) (((MrLagSegment*)mr_vector_get(s->segments, 0))->x - ((MrLagSegment*)mr_vector_get(s->segments, s->segments->size -1))->x + 1) |
#define | SECTION_START(s) ((MrLagSegment*)mr_vector_get(s->segments, 0)) |
#define | SECTION_START_X(s) (SECTION_START(s)->x) |
#define | SECTION_END(s) ((MrLagSegment*)mr_vector_get(s->segments, s->segments->size - 1)) |
#define | SECTION_END_X(s) (SECTION_END(s)->x) |
Typedefs | |
typedef MrLagSection | MrLagSection |
Functions | |
MrLagSection * | mr_lag_section_new () |
void | mr_lag_section_free (void *p) |
void | mr_lag_section_add_segment (MrLagSection *section, void *segment) |
unsigned int | mr_lag_section_area (MrLagSection *section) |
unsigned int | mr_lag_section_mean_Y (MrLagSection *section) |
void | mr_lag_section_remove (MrLagSection *section) |
|
|
|
|
|
|
|
|
|
|
|
|
|
Add a segment to the section. Update the sum and mean |
|
Return the sum of pixel in the section : return sum_height |
|
Destroys a section. Does not delete junctions and segments object in the vectors |
|
Return the mean Y coordinate of the section. Used to define a horizontal line associated to this section. |
|
Creates a new section |
|
update junction as the section does not exist any more |