Community
cancel
Showing results for 
Search instead for 
Did you mean: 
th_weber
Beginner
44 Views

Calculating leftTopBorder and rightBottomBorder for ippiCopyWrapBorder_32f_C1R during wavelet transform

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
44 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
44 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