## NAME

         encode_data - assigns codebook  to  input  vectors  for  LBG
         compression

## SYNOPSIS

         #include <LBG.h>

         void encode_data(float **codebook, float **data, int *index,
         int size, int dim, int nvecs)

## PATH

         $CVIPHOME/COMPRESSION/LBG_utils.c

## DESCRIPTION

         This routine assigns a codebook index to the  input  vectors
         based  on  the  nearest-neighbor  classification  criterion.
         This criterion results in  the  selection  of  the  codebook
         entry  which  is  closest  to  the input vector in euclidian
         space.

## TYPES AND CONSTANTS

         None

## RETURN VALUES

         A codebook index for use with LBG compression

## HISTORY

         History information recorded: None

## SEE ALSO

         $CVIPHOME/COMPRESSION/LBG_utils.c

## AUTHOR

         Arve Kjoelen, SIUE

         Copyright (C) 1996 SIUE - by Scott E. Umbaugh.