Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
6656 Discussions

How to form the codebook for vector quantization functions

khalil_mi
Beginner
137 Views

Hi

I try to use the vector quantization functions but I can not form the codebook

Is there any sample code that shows how to use these functions

Thanks

Mahmoud

Note: I use the following package:

Package ID: w_ipp_ia32_itanium_pu_4.1.3.002
Package Contents: Intel Integrated Performance Primitives v4.1 for Windows* on Intel Pentium and Itanium processors

0 Kudos
3 Replies
Vladimir_Dudnik
Employee
137 Views

Hi Mahmoud,

could you please specify which exactly functions you are trying to use?

Regards,
Vladimir

khalil_mi
Beginner
137 Views

Thanks Vladimir

I try to use the ippsVQDistSingle_Sort_16s32s_Sfs function

The vectors I have are 32 integer numbers

I believe I have to use the ippsCdbkInit_L2_16s function first to allocate the codeBook

Mahmoud

Intel_C_Intel
Employee
137 Views

Mahmoud,

IPP support vector quantisation for 32f and 16sdata. initCdbk_L2 functions allocates memory and builds the codebook. Full and tree search are supported.

ippsVQDistSingleSort_16s32s_Sfs functions finds several best clusters for 16s vectors and calculates distance to centroids as scaled32s numbers.

To do VQ for 32s data with IPP functions you should convert them to 32f or 16s format.

Alexander

Reply