- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ippiRotateCenter uses a rotation centre for the source image and mapped source center to the point in destination image with the same coordinates. If you want to place the result at an arbitary point on the destination you should use ippiRotate function with required xShift and yShift parameters for example you can use the follwing code
xCenterSrc = ...;
yCenterSrc = ...;
angle = ...;
xCenterDst = ...;
yCenterDst = ...;
ippiGetRotateShift(xCenterSrc, yCenterSrc, angle, &xShift, &yShift);
xShift += xCenterDst - xCenterSrc;
yShift += yCenterDst - yCenterSrc;
ippiRotate(..., angle, xShift, yShift, interpolate);
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) yes, if You mean matrix of kind
a00 a01 a02
a10 a11 a12
0 0 1
2) yes, ippiWarpAffine is quick as Rotate (and in current implementation ippiRotate uses it)
3) there is ippiWarpAffineBack function in IPP which perform tramsformation with inverse matrix
4) ippiGetAffineTransform, ippiGetAffineTransform, ippiWarpAffine and ippiWarpAffineBack deal with matrix
X' = coeffs[0][0] * X + coeffs[0][1] * Y + coeffs[0][2]
Y' = coeffs[1][0] * X + coeffs[1][1] * Y + coeffs[1][2]
Regards,
Vladimir

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page