[cpp]Ipp8u* srcData;
IppiRect srcROI = {0, 0, width, height};[/cpp]
[cpp]IppiRect srcROI = {x, y, width, height};System specifications:
...
srcData += widthStep * srcROI.y + srcROI.x;
IppiRect newSrcROI = {0, 0, srcROI.width, srcROI.height};
[/cpp]
Link Copied
[cpp]Ipp8u* pDst, int dstStep, IppiSize dstRoiSize[/cpp]here you may see dstRoiSize.
The destinationpixels are mapped back to the sourceimage and interpolated if get to it. It looks approximately so:
For (I = dstROI.y; I < dstROI.y + dstROI.height; I++) {
For (J = dstROI.x; J < dstROI.x + dstROI.width; J++) {
xCoordSrc = 1 / xFactor * (I + 0.5) - xShift / xFactor;
yCoordSrc = 1 / yFactor * (I + 0.5) - yShift / yFactor;
if (pixel (xCoordSrc, xCoordSrc)is in srcROI) {
interpolate;
}
}
}
Regards,
Beg
For more complete information about compiler optimizations, see our Optimization Notice.