- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
What's the calculation rule of that function? How can i calculate xShift and yShift?
Thanks in advance for your help!
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much Valentin for your quick answer. Your suggestion works great!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page