Quantcast
Channel: Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1294

Mismatch in output of ippiResizeLinear from older resize API ippiResize and also from legacy ippiresizeSqrPixel

$
0
0

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


Viewing all articles
Browse latest Browse all 1294

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>