CompressedVisualFeature *CreateCompressedVisualFeature(int n) { CompressedVisualFeature *cvf=NULL; cvf = (CompressedVisualFeature *) calloc(1,sizeof(CompressedVisualFeature)); if (cvf != NULL) { cvf->lowH = AllocUCharArray(n); cvf->highH = AllocUCharArray(n); cvf->n = n; } else { Error(MSG1,"CreateCompressedVisualFeature"); } return(cvf); }
Histogram *CreateHistogram(int n) { Histogram *h=NULL; h = (Histogram *) calloc(1,sizeof(Histogram)); if (h != NULL) { h->v = AllocUCharArray(n); h->n = n; } else { Error(MSG1,"CreateHistogram"); } return(h); }
GCHCompressedVisualFeature *GCHCreateCompressedVisualFeature(int n) { GCHCompressedVisualFeature *cvf=NULL; cvf = (GCHCompressedVisualFeature *) calloc(1,sizeof(GCHCompressedVisualFeature)); if (cvf != NULL) { cvf->colorH = AllocUCharArray(n); cvf->n = n; } else { Error(MSG1,"GCHCreateCompressedVisualFeature"); } return(cvf); }