- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
ippiRotate gives me different results with single image rotation and tiled one. Tiled result has some artifacts on the edges.
Here is my code:
// Rotate on single image
{
IppiRect dstBounds = {0, 0, pResult->GetWidth(), pResult->GetHeight()};
IppStatus res = ippiRotate_8u_C3R(pSrcPixels, srcSize, stripe.GetStride(), srcBounds, pDstPixels, pResult->GetStride(), dstBounds, _angle, _xShift, _yShift, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE);
if (res < ippStsNoErr)
EX_THROW(IppException(EX_PARAMS, res));
}
// Rotate on tiled image
{
uint32_t tileSize = 15;
uint32_t tileCountX = 15;
uint32_t tileCountY = 15;
for (uint32_t i = 0; i < tileCountY; i++)
{
for (uint32_t j = 0; j < tileCountX; j++)
{
IppiRect dstBounds = {i * tileSize, j * tileSize, tileSize, tileSize};
IppStatus res = ippiRotate_8u_C3R(pSrcPixels, srcSize, stripe.GetStride(), srcBounds, pDstPixels, pResult->GetStride(), dstBounds, _angle, _xShift, _yShift, IPPI_INTER_CUBIC | IPPI_SMOOTH_EDGE);
if (res < ippStsNoErr)
EX_THROW(IppException(EX_PARAMS, res));
}
}
}
Without IPPI_SMOOTH_EDGE both results are equal.
Please correct me if I’m doing something wrong.
Best regards,
Evgeniy Kosmin
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gatwick is an excellent area with regard to leasing work place within Tube Ends, Birmingham isn't any lengthier the actual centre from the UNITED KINGDOM because of costly lease and purchasing expenses as well as severe blockage which means the actual transportation systems tend to be match in order to burst open and therefore are battling to handle the present occupants not to mention brand new Safety Handle companies. Leasing work place provides a less dangerous option to the actual large pounds of the long-term home loan.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page