********************************************************************
function: utility main for building codebooks from training sets
- last mod: $Id: build.c,v 1.10 2000/02/07 19:39:45 xiphmont Exp $
+ last mod: $Id: build.c,v 1.11 2000/02/07 19:49:56 xiphmont Exp $
********************************************************************/
for(j=0;j<c.encode_tree->aux;){
fprintf(out,"\t");
for(k=0;k<8 && j<c.encode_tree->aux;k++,j++)
- fprintf(out,"%6ld,",c.encode_tree->p[j]*c.elements);
+ fprintf(out,"%6ld,",c.encode_tree->p[j]*c.dim);
fprintf(out,"\n");
}
fprintf(out,"};\n\n");
for(j=0;j<c.encode_tree->aux;){
fprintf(out,"\t");
for(k=0;k<8 && j<c.encode_tree->aux;k++,j++)
- fprintf(out,"%6ld,",c.encode_tree->q[j]*c.elements);
+ fprintf(out,"%6ld,",c.encode_tree->q[j]*c.dim);
fprintf(out,"\n");
}
fprintf(out,"};\n\n");