#include <ClusterUtils.h>
Public Member Functions | |
ClusterUtils (void) | |
constructor | |
~ClusterUtils (void) | |
destructor | |
Static Public Member Functions | |
static jcluster * | create_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 jcluster * | filter_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) |
Definition at line 14 of file ClusterUtils.h.
ClusterUtils::ClusterUtils | ( | void | ) |
constructor
ClusterUtils::~ClusterUtils | ( | void | ) |
destructor
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
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 |
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
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.
first_cluster | the begining of the first cluster | |
threshold | threshold for filter the cluster list | |
count | the number of cluster after the filter |
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
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 |