Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bayer__Stefan
Beginner
110 Views

Replacement for ippiAddRotateShift()?

Jump to solution

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-...

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
110 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

2 Replies
Valentin_K_Intel
Employee
111 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

Bayer__Stefan
Beginner
110 Views

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

Reply