ClusterUtils Class Reference

Class providing tools to manipulate clusters. More...

#include <ClusterUtils.h>

List of all members.

Public Member Functions

 ClusterUtils (void)
 constructor
 ~ClusterUtils (void)
 destructor

Static Public Member Functions

static jclustercreate_cluster (char *image, jcluster *prev, int *count, int height, int width)
static int add_to_cluster (jcluster *cluster, char *image, int height, int width)
static jclusterfilter_small_clusters (jcluster *first_cluster, int threshold, int *count)
static int match_to_clusters (char *image, jcluster *first_cluster, int hamming_number, int height, int width)


Detailed Description

Class providing tools to manipulate clusters.

Definition at line 14 of file ClusterUtils.h.


Constructor & Destructor Documentation

ClusterUtils::ClusterUtils ( void   ) 

constructor

ClusterUtils::~ClusterUtils ( void   ) 

destructor


Member Function Documentation

static jcluster* ClusterUtils::create_cluster ( char *  image,
jcluster prev,
int *  count,
int  height,
int  width 
) [static]

create_cluster creates a list of clusters from an input image with the hight and width

Parameters:
image char* pointing to memory buffer
prev pointing to the previous cluster
count the number of clusters
height height of the clusters
width width of the clusters
Returns:
list of clusters

static int ClusterUtils::add_to_cluster ( jcluster cluster,
char *  image,
int  height,
int  width 
) [static]

Add_to_cluster add a giving image to the cluster list

Parameters:
cluster list of cluster
image char* to image buffer
height height of the clusters
width width of the clusters

static jcluster* ClusterUtils::filter_small_clusters ( jcluster first_cluster,
int  threshold,
int *  count 
) [static]

filter_small_clusters is a filter function to filter out the small clusters form the cluster list.

Parameters:
first_cluster the begining of the first cluster
threshold threshold for filter the cluster list
count the number of cluster after the filter
Returns:
pointers to the jcluster list

static int ClusterUtils::match_to_clusters ( char *  image,
jcluster first_cluster,
int  hamming_number,
int  height,
int  width 
) [static]

match_to_clusters matches a giving image to a list of clusters

Parameters:
image char* to image buffer
first_cluster the begining of the first cluster
hamming_number harmming number
height height of the clusters
width width of the clusters
Returns:
int


The documentation for this class was generated from the following file:
Generated on Fri Feb 23 15:32:33 2007 for Jargon by  doxygen 1.5.1