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

64 bit equivalent of ippiResizeCubic_32f_C1R and ippiResizeCubicInit_32f

Biresh_M_
Beginner
408 Views

I am modifying an existing code that  changes an image size using interpolation with two-parameter cubic filters. Current implementation is in 32 bits. I am implementing it for 64 bit. 32 bit implementation use methods ippiResizeCubic_32f_C1R, ippiResizeCubicInit_32f for resizing. I need their 64 bit equivalents. But documentation in links https://software.intel.com/en-us/node/504372 and https://software.intel.com/en-us/node/504360 shows that their 64 bit is not available. What are the methods that I can use for replacing these methods? Any example will be of great help.

0 Kudos
1 Reply
Valentin_K_Intel
Employee
408 Views

Hi Biresh,

You can try to use ippiWarpAffineCubic_64f_C1R as 64 bit equivalent of ippiResizeCubic_32f_C1R.
The affine coefficients should be computed by the following way:

fx = (double)(destination image width) / (source image width)

fy = (double)(destination image height) / (source image height)

c00 = fx             c01 = 0          c02 = 0.5 * fx - 0.5

c10 = 0              c11 = fy          c12 = 0.5 * fy - 0.5

Here is the documentation for Warp Affine Functions with Prior Initialization: https://software.intel.com/en-us/node/529049

Best regards,
Valentin

0 Kudos
Reply