Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

does ippiDiv works?

hk1
Débutant
693 Visites
Hi,
I have a problem using ippiDiv_8u_C1RSfs and ippiDiv_8u_C1IRSfs as well. A destination bufferis always filled with zeros, no matter what is a content of source buffers. Even if I use same buffer as src1 and src2, the result of divide is zero filled buffer, but it should be 1's? I tried with many scale factors, including 1, 255, 65535
Thanks
0 Compliments
4 Réponses
hk1
Débutant
693 Visites
I have tried with IPP4.0 and IPP5.0
0 Compliments
Intel_C_Intel
Employé
693 Visites

scalefactor=1 means that the result is multiplied by 2^(-1) ie x/x will be 1>>1=0 (see manual, Volume 1 p 2-11)

Have you tried with scalefactor=0 or scalefactor<0?

0 Compliments
hk1
Débutant
693 Visites
Many thanks,
I tried with scalefactor = -8 and it is ok. Result is scaled by 256.
The problem was, that ippi manual doesn't mention it in ippiDiv function description. And in IppiMan.pdf on the page 2-11 thereare status constants descriptions only.
0 Compliments
Intel_C_Intel
Employé
693 Visites
I may be wrong with the page number. The paragraph name is "Integer Scaling" or "Integer Result Scaling"
0 Compliments
Répondre