- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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 솔루션
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
링크가 복사됨
2 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
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
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thank you very much Valentin for your quick answer. Your suggestion works great!
