Is there an official way of calculating the center that one should pass to the GetRotateShift function? Yes, center could be anything we want, but if we want the official center of the image. Do we use the half pixels, round up, round down, something entirely different from dividing src image height and width by 2.0? The general idea of what I'm looking to do is something like:
ippGetRotateShift(xCenter, yCenter, angle, &xShift, &yShift);
ippiGetRotateTransform(angle, xShift, yShift, coeffs);
...
ippiWarpAffineLinear_<mod>(...)
Just using a small source buffer for testing, I can look at in RAM and see what it looks like. Then look at the destination buffer in RAM after doing a 90 degree rotate and it isn't shifted correctly. If I skip calling ippGetRotateShift, and hard code the shift values as 0 for X and src width - 1 for y, then it will be properly shifted after doing the 90 degree rotate. This obviously isn't a correct solution as we want to be able to use any angle.
Thanks,
Torin