#include <Line_cluster.h>
Public Member Functions | |
Line_cluster () | |
Line_cluster (double len, double width, double height) | |
~Line_cluster () | |
bool | hasColor () |
void | setColors (Color *c1IN, Color *c2IN) |
void | setBaseLine (Line *bline) |
void | setConvergePoint (Point *conv) |
void | setRegionInfo (Region_info *infoIN) |
void | addLine (Line *l) |
int | getNumLines () |
double | getTotalLength () |
double | getArea () |
int | getNumLinesContained (double start_angle, double stop_angle) |
vector< Line * > * | getLinesContained (double start_angle, double stop_angle) |
double | getWidth () |
double | getHeight () |
Line * | getMaxLengthLine () |
Line * | getMinLengthLine () |
void | printClusterLines () |
void | setLabel (int labelIN) |
int | getLabel () |
Line * | getFirst () |
Line * | getNext () |
void | recenterLines (int x, int y) |
|
|
|
|
|
|
|
adds a line to this structure region, or line cluster |
|
returns the area of the polygon that covers this cluster |
|
returns the first line in this structure region |
|
returns the height of the image |
|
returns the label for this structure region |
|
|
|
returns a ptr to the longest line |
|
returns a ptr to the shortest line |
|
returns the next line in this structure region |
|
returns the number of lines contained in this region |
|
returns the number of lines contained between the two given angles (i.e., where the orientation of the line is <= start_angle and < stop_angle) |
|
returns the sum of the length of all the lines in the cluster |
|
returns the width of the image |
|
returns whether colors for the sides of the cluster have been set |
|
prints some information about the line cluster to stderr |
|
adds x and y to every point in every line in this cluster |
|
sets the base line of the line cluster will have either this or a converging point |
|
sets the colors of both sides of the structure region |
|
sets the converging point of the lines in the cluster will have either this or a base line |
|
sets the label of this structure region based on the results of some clustering algorithm, presumably |
|
sets the region info for this structure region, which includes ellipses and polygons |