Vector quantization of segment features