Hi,
Initially I was using older version of IPP resize API (ippiResize_16u_C1R) with linear interpolation and BorderType Const. Since the IPP9.0 ResizeLinear with takes only two type of BorderType parameter (ippBorderInMem & ippBorderRepl), so I used src image with margin and border value zero and called ippiResizeLinear_16u_C1R with border type ippBorderInMem. But output of ippiResizeLinear_16u_C1R API is different from that resize API in older version.
Even the resize API from legacy(ippiresizeSqrPixel_16u_C1R) gives different output for linear interpolation. All three Resize API have different output for linear interpolation.
Given below is my code
IppiBorderType borderType = ippBorderInMem; Ipp16u boarderValue = 0; IppiBorderSize borderSize; ResizeLinearInit_16u(src.getRoiSize(), dst.getRoiSize(), pSpec); ResizeGetBufferSize_16u(pSpec, dst.getRoiSize(), 1, &workBufSize); ResizeGetBorderSize_16u(pSpec, &borderSize); ResizeLinear(srcWithMargin, dst, Point(0, 0), dst.getRoiSize(), borderType, &boarderValue, pSpec, workBuffer);
I need to keep backward compatibility, so please suggest me cause of mismatch and what can be done..?
Regards
Ubhay