00001 #ifndef CLUSTERUTILS_H
00002 #define CLUSTERUTILS_H
00003
00004
00005 #include <stdio.h>
00006 #include "JScript.h"
00007
00008
00009
00010
00011
00012
00014 class ClusterUtils
00015 {
00016 public:
00018 ClusterUtils(void);
00020 ~ClusterUtils(void);
00021
00033 static jcluster* create_cluster( char *image, jcluster *prev,
00034 int *count,int height, int width);
00042 static int add_to_cluster(jcluster *cluster, char *image,
00043 int height, int width);
00044
00054 static jcluster *filter_small_clusters(jcluster *first_cluster,
00055 int threshold,int *count);
00056
00067 static int match_to_clusters(char *image,jcluster *first_cluster,
00068 int hamming_number,int height,int width);
00069
00070 };
00071
00072
00073
00074 #endif