next up previous contents index
Next: flbg Up: Reference Previous: fivq   Contents   Index

flbg_adap

$ \bigcirc$Name


flbg_adap Generates a (sequence of) codebook(s) adapted for classified V.Q. from a training set of images using LBG algorithm




$ \bigcirc$Command Synopsis


flbg_adap [-s CBSize1] [-w VectorWidth] [-h VectorHeight] [-l] [-d Decim] [-e Edge] [-S ThresVal1] [-T ThresVal2] [-U ThresVal3] [-W Weight] [-M] [-p] [-t CBSize2] [-u CBSize3] [-v CBSize4] [-A TrainImage2] [-B TrainImage3] [-C TrainImage4] [-D TrainImage5] [-E TrainImage6] [-F TrainImage7] [-G TrainImage8] [-x Output2] [-y Output3] [-z Output4] TrainImage1 Output1



-s CBSize1 : Size of output codebook for first class

-w VectorWidth : Width of vectors (default : 2)

-h VectorHeight : Height of vectors (default : 2)

-l : Take overlapping vectors in training images

-d Decim : Decimation factor in training images (for wavelet transform)

-e Edge : Do not take overlapping vectors if the distance to an edge is smaller than Edge (default : 0)

-S ThresVal1 : First threshold value for classified VQ

-T ThresVal2 : Second threshold value for classified VQ

-U ThresVal3 : Third threshold value for classified VQ

-W Weight : Weighting factors for the components of vector (fsignal)

-M : Generate codebooks of size equal to a power of two and smaller than Size

-p : Do not print information

-t CBSize2 : Size of output codebook for second class

-u CBSize3 : Size of output codebook for third class

-v CBSize4 : Size of output codebook for fourth class

-A TrainImage2 : Training image (fimage)

-B TrainImage3 : Training image (fimage)

-C TrainImage4 : Training image (fimage)

-D TrainImage5 : Training image (fimage)

-E TrainImage6 : Training image (fimage)

-F TrainImage7 : Training image (fimage)

-G TrainImage8 : Training image (fimage)

-x Output2 : Resulting codebook set for second class (fimage)

-y Output3 : Resulting codebook set for third class (fimage)

-z Output4 : Resulting codebook set for fourth class (fimage)

TrainImage1 : Training image (fimage)

Output1 : Resulting codebook set for first class (fimage)




$ \bigcirc$Function Summary


void flbg_adap (Size , Width , Height , Lap , Decim , Edge , ThresVal1 , ThresVal2 , ThresVal3 , Weight , MultiCB , PrintSNR , Size2 , Size3 , Size4 , Image2 , Image3 , Image4 , Image5 , Image6 , Image7 , Image8 , Output2 , Output3 , Output4 , Image1 , Output )

int *Size ;

int *Width , *Height ;

int *Lap ;

int *Decim ;

int *Edge ;

float *ThresVal1 , *ThresVal2 , *ThresVal3 ;

Fsignal Weight ;

int *MultiCB ;

int *PrintSNR ;

int *Size2 , *Size3 , *Size4 ;

Fimage Image2 , Image3 , Image4 , Image5 , Image6 , Image7 , Image8 ;

Fimage Output2 , Output3 , Output4 ;

Fimage Image1 ;

Fimage Output ;




$ \bigcirc$Description


This module enables to generate a set of codebooks adapted for classified vector quantization using the LBG algorithm (see flbg_train documentation or [GG92], [LBG80]). Here the classification of the vectors is made according to their energy (see fvq or mk_trainset documentations).

The training sets of vectors for the LBG algorithm are extracted from the floating point images read in TrainImage1, ..., TrainImage8 files. There is one training set for each generated codebook. These codebooks are stored in the files Output1, ..., Output4 files. Their respective sizes are CBSize1, ..., CBSize4.

The -w and -h options have the same meaning as in mk_trainset : they enable to tune the size and shape of vectors.

The -l, -d and -e options have the same meaning as in mk_trainset : they permit to control of the construction of training sets.

The -S, -T and -U options have the same meaning respectively as the -t, -u and -v options in mk_trainset.

The -W, -M and -p options have the same effect as in flbg_train module.




$ \bigcirc$See Also


flbg_train, mk_trainset.

wlbg_adap.


$ \bigcirc$Version 2.00


Last Modification date : Thu Nov 29 20:23:57 2001


$ \bigcirc$Author


Jean-Pierre D'Ales






next up previous contents index
Next: flbg Up: Reference Previous: fivq   Contents   Index
mw 2004-05-05