Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6761 Discussions

Migration from ippiWarpAffine_8u_C1R to ippiWarpAffineLinear_8u_C1R

hail2m15
Beginner
732 Views

So i am migrating to the latest version of intel API and for the warpaffine function i have used ippiWarpAffineLinear_8u_C1R. But in the new varient the srcROI parameter is missing.

When i dump image using the old api and new api there is a difference based on this srcROI. when the srcROI and dstROI is same the output image will be same. But in my use case the srcROI input will be different from the destination dimensions.

how to modify the new api so that it will consider the srcROI when the output image is created.

 

 ippiWarpAffine_8u_C1R (
const Ipp8u* pSrc, IppiSize srcSize, int srcStep, IppiRect srcROI, Ipp8u* pDst, int dstStep, IppiRect dstROI,
const double coeffs[2][3], int interpolation)

 

 

0 Kudos
1 Reply
Ruqiu_C_Intel
Moderator
667 Views

Dear IPP user,

 

There is a description about ROI in the IPP developer reference document here https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2021-10/roi-processing-in-geometric-transforms.html

The destination image origin ROI for different functions can be specified by dstOffset parameter 
of IppiPoint type and dstSize parameter of IppiSize type. In this case, the processed destination image
coressponds to the processed ROI of the destination image origin.

 

srcROI is similar by using srcSize, please check the ippiWarpAffineLinear_8u example here:  https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2021-10/ipp-ref-warp-affine-with-prior-initialization.html

 

 

0 Kudos
Reply