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

does ippiDiv works?

hk1
Beginner
448 Views
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 Kudos
4 Replies
hk1
Beginner
448 Views
I have tried with IPP4.0 and IPP5.0
0 Kudos
Intel_C_Intel
Employee
448 Views

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 Kudos
hk1
Beginner
448 Views
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 Kudos
Intel_C_Intel
Employee
448 Views
I may be wrong with the page number. The paragraph name is "Integer Scaling" or "Integer Result Scaling"
0 Kudos
Reply