tesseract v5.3.3.20231005
cluster.h File Reference
#include "kdtree.h"
#include "oldlist.h"

Go to the source code of this file.

Classes

struct  tesseract::CLUSTER
 
struct  tesseract::CLUSTERCONFIG
 
union  tesseract::FLOATUNION
 
struct  tesseract::PROTOTYPE
 
struct  tesseract::CLUSTERER
 
struct  tesseract::SAMPLELIST
 

Namespaces

namespace  tesseract
 

Macros

#define MINBUCKETS   5
 
#define MAXBUCKETS   39
 
#define InitSampleSearch(S, C)   (((C) == nullptr) ? (S = NIL_LIST) : (S = push(NIL_LIST, (C))))
 

Typedefs

using tesseract::SAMPLE = CLUSTER
 

Enumerations

enum  tesseract::PROTOSTYLE { tesseract::spherical , tesseract::elliptical , tesseract::mixed , tesseract::automatic }
 
enum  tesseract::DISTRIBUTION { tesseract::normal , tesseract::uniform , tesseract::D_random , tesseract::DISTRIBUTION_COUNT }
 

Functions

CLUSTERER * tesseract::MakeClusterer (int16_t SampleSize, const PARAM_DESC ParamDesc[])
 
SAMPLE * tesseract::MakeSample (CLUSTERER *Clusterer, const float *Feature, uint32_t CharID)
 
LIST tesseract::ClusterSamples (CLUSTERER *Clusterer, CLUSTERCONFIG *Config)
 
void tesseract::FreeClusterer (CLUSTERER *Clusterer)
 
void tesseract::FreeProtoList (LIST *ProtoList)
 
void tesseract::FreePrototype (void *arg)
 
CLUSTER * tesseract::NextSample (LIST *SearchState)
 
float tesseract::Mean (PROTOTYPE *Proto, uint16_t Dimension)
 
float tesseract::StandardDeviation (PROTOTYPE *Proto, uint16_t Dimension)
 
int32_t tesseract::MergeClusters (int16_t N, PARAM_DESC ParamDesc[], int32_t n1, int32_t n2, float m[], float m1[], float m2[])
 

Macro Definition Documentation

◆ InitSampleSearch

#define InitSampleSearch (   S,
 
)    (((C) == nullptr) ? (S = NIL_LIST) : (S = push(NIL_LIST, (C))))

Definition at line 110 of file cluster.h.

◆ MAXBUCKETS

#define MAXBUCKETS   39

Definition at line 29 of file cluster.h.

◆ MINBUCKETS

#define MINBUCKETS   5

Definition at line 28 of file cluster.h.