Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Two complex issues in a complex Wavelet transform program

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone.

I've developed a program that computes the Wavelet transform of 1D signals and 2D images, complete with a GUI with a few options.

However, there are two bugs which I still haven't been able to figure out, let alone fix.

The first is that the reconstructed image is just wrong, depending on the transform and reconstruction level. Although it's wrong, it resembles the original image.

The second is that the application of a soft threshold is accumulated every time the image view updates, which shouldn't happen.

The weird thing is that these things only happen in the GUI. Running the same code by hand (i.e. in a snippet), it doesn't happen.

The complete code and some more information are available on GitHub, on the following link:

The code is not very optimized, so sorry about that.

If someone can find how to fix these bugs before me, I'll be grateful.

Thanks in advance.

Guilherme Alan Ritter
Posts: 13
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed it. I was a mere reference leak at the end of the 2D inverse transform method.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic