2D wavelet transform example problem

2D wavelet transform example problem

Has anyone tried to run ref sample app in x64 Debug config? It crashes in the wrap routine. What would be the fix?

Thank you!

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hello,

Thank youfor the reports. There is negtive index in Array operation in the code, where 32bit and 64bit have different address as http://www.devx.com/tips/Tip/41349mentioned or http://www.viva64.com/en/l/0013/lession 13.so cause the memery access voliation.

You may workaround the probelm in wrap.h

protected:
template static void wrap(T base, unsigned int len,
unsigned int left, unsigned int right)
{

.....

for(i = 0; i < maxExt; i++)
{
if(i < left)

// base[-(int)(i-lEdge)] = base[len - 1 - i]; // use this or
base[ptrdiff_t(lEdge)-ptrdiff_t(i)]=base[len-1-i]; // Please note, base[ptrdiff_t(lEdge-i)] don't work
......

Best Regards,
Ying H.

That did the trick.

Thank you very much, Ying for taking the time to repond even on a Sunday night! Admirable!

Uwe

Leave a Comment

Please sign in to add a comment. Not a member? Join today