Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6628 Discussions

Calculating leftTopBorder and rightBottomBorder for ippiCopyWrapBorder_32f_C1R during wavelet transform

th_weber
Beginner
108 Views
Hi,

I would like to calculate a 2d wavelet transform with a filter tap of length 3 and anchor point 0, more precisely:
lenLow = 3;
lenHigh = 3;
anchorLow = 0;
anchorHigh = 0;

Following the manual at
http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/ippxe/ipp_manual_win_mac...,
this means I end up with a value of "-1" for rightBorderLow, more precisely:

leftBorderLow = 2;
leftBorderHigh = 2;
rightBorderLow = -1;
rightBorderHigh = -1;

and then
leftTopBorder = 2;
rightBottomBorder = -1;

This means that the later call to ippiCopyWrapBorder_32f_C1R() fails, as I want to add a left-top border of 2 pixels, but the image has only been grown by leftTopBorder+rightBottomBorder=1 pixel.

So, how do I proceed here? IPP is 6.1, but the example code hasn't change for IPP 7.0.

Thanks
Thomas
0 Kudos
2 Replies
Chao_Y_Intel
Employee
108 Views
Hi Thomas,

Wrap border is simple. If you could can not call the function. It may only needs to extendend by yourself. For example,
1 2 3 4 56
is extentend as:
3 4 5 1 2 3 4 5 1 2 3
The data underlined is extended data. A more complex examples on other extenstion can be found here:
http://software.intel.com/en-us/forums/showthread.php?t=78540

Thanks,
Chao
th_weber
Beginner
108 Views

Hi Chao,

thanks for your answer. However, my question is more along the lines of whether I'm doing something wrong when choosing an anchor point at 0? And how to calculate the values for leftTopBorder and rightBottomBorder?

Thanks

Thomas

Reply