Main Page | Namespace List | Compound List | File List | Compound Members | File Members

Line_cluster Class Reference

#include <Line_cluster.h>

List of all members.

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 ()
LinegetMaxLengthLine ()
LinegetMinLengthLine ()
void printClusterLines ()
void setLabel (int labelIN)
int getLabel ()
LinegetFirst ()
LinegetNext ()
void recenterLines (int x, int y)


Constructor & Destructor Documentation

Line_cluster::Line_cluster  ) 
 

Line_cluster::Line_cluster double  len,
double  width,
double  height
 

Line_cluster::~Line_cluster  ) 
 


Member Function Documentation

void Line_cluster::addLine Line l  ) 
 

adds a line to this structure region, or line cluster

double Line_cluster::getArea  ) 
 

returns the area of the polygon that covers this cluster

Line * Line_cluster::getFirst  ) 
 

returns the first line in this structure region

double Line_cluster::getHeight  ) 
 

returns the height of the image

int Line_cluster::getLabel  ) 
 

returns the label for this structure region

vector< Line * > * Line_cluster::getLinesContained double  start_angle,
double  stop_angle
 

Line * Line_cluster::getMaxLengthLine  ) 
 

returns a ptr to the longest line

Line * Line_cluster::getMinLengthLine  ) 
 

returns a ptr to the shortest line

Line * Line_cluster::getNext  ) 
 

returns the next line in this structure region

int Line_cluster::getNumLines  ) 
 

returns the number of lines contained in this region

int Line_cluster::getNumLinesContained double  start_angle,
double  stop_angle
 

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)

double Line_cluster::getTotalLength  ) 
 

returns the sum of the length of all the lines in the cluster

double Line_cluster::getWidth  ) 
 

returns the width of the image

bool Line_cluster::hasColor  ) 
 

returns whether colors for the sides of the cluster have been set

void Line_cluster::printClusterLines  ) 
 

prints some information about the line cluster to stderr

void Line_cluster::recenterLines int  x,
int  y
 

adds x and y to every point in every line in this cluster

void Line_cluster::setBaseLine Line bline  ) 
 

sets the base line of the line cluster

will have either this or a converging point

void Line_cluster::setColors Color c1IN,
Color c2IN
 

sets the colors of both sides of the structure region

void Line_cluster::setConvergePoint Point conv  ) 
 

sets the converging point of the lines in the cluster

will have either this or a base line

void Line_cluster::setLabel int  labelIN  ) 
 

sets the label of this structure region based on the results of some clustering algorithm, presumably

void Line_cluster::setRegionInfo Region_info infoIN  ) 
 

sets the region info for this structure region, which includes ellipses and polygons


The documentation for this class was generated from the following files:
Generated on Thu Sep 4 14:59:32 2003 for Content-Based Image Retrieval by doxygen 1.3.3