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

Replacement for ippiAddRotateShift()?

Bayer__Stefan
Beginner
420 Views

I have to port some legacy code from IPP 7.0 to current IPP 9.0. Unfortunately the former function

ippiAddRotateShift (double xCenter, double yCenter, double angle, double * xShift, double * yShift) 

is deleted without replacement in IPP 9.0:

https://software.intel.com/en-us/ipp-dev-reference-appendix-c-removed-functions-for-image-and-video-processing

What's the calculation rule of that function? How can i calculate xShift and yShift?

Thanks in advance for your help!

0 Kudos
1 Solution
Valentin_K_Intel
Employee
420 Views

Hi Stefan,

Please use the following code to compute xShift and yShift:

void AddRotateShift(double xCenter, double yCenter, double angle, double *xShift, double *yShift)
{
    double  sx, sy;

    ippiGetRotateShift(xCenter, yCenter, angle, &sx, &sy);
    *xShift += sx;
    *yShift += sy;

    return;
}

Thanks,
Valentin

View solution in original post

0 Kudos
2 Replies
Valentin_K_Intel
Employee
421 Views

Hi Stefan,

Please use the following code to compute xShift and yShift:

void AddRotateShift(double xCenter, double yCenter, double angle, double *xShift, double *yShift)
{
    double  sx, sy;

    ippiGetRotateShift(xCenter, yCenter, angle, &sx, &sy);
    *xShift += sx;
    *yShift += sy;

    return;
}

Thanks,
Valentin

0 Kudos
Bayer__Stefan
Beginner
420 Views

Thank you very much Valentin for your quick answer. Your suggestion works great!

0 Kudos
Reply