Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
6706 Discussions

How to Implement Multilevel Wavelet Forward/Inverse Transform

Kadir_Kirtac
Beginner
409 Views
Hi, I need to implement multilevel wavelet transform using IPP.
The availableWTFwd andWTInv routines perform single level wavelet transform and its inverse.
Is there any available code to perform multi level transform?
I tried to implement manually but failed. The forward transform results seem ok, but reconstruction results oher than the one of the smallest scale seem totally wrong.
What I am doing is, I am just applying the single level inverse transform routine at each level(scale), using the previous reconstruction result as the approximation image of that level and using the current level detail images(detail coefficients HL, LH and HH of the current level) without any change. So that is the standard multi level wavelet reconstruction procedure, as far as I know.
With the same implementation I mentioned above, I can successfully apply single level forward and inverse transforms, but when I change the level to a number that is greater than 1, my reconstruction results become totally wrong, taking the form of a periodic pattern. But smallest scale approximation band which I obtain by 4-level fwd transform and my reconstruction result obtained by the multilevel inv transform at the smallest scale become the same. But as I am going up during the reconstruction(bigger resolution scales) , my reconstruction result goes worse.
I enclose the input image, approximation band of the single level wavelet transform(with padding), single level inverse transform result(reconstruction, padding removed), and 4-level reconstruction result. Notice that the 4-level reconstruction result makes no sense compared with the input image..
What can be the cause of my erroneous result?
0 Kudos
3 Replies
Vladimir_Dudnik
Employee
409 Views
Hello,

did you noticed 2d-wavelet-transform sample in IPP sample package (image-processing folder)?
I also would recommend you to look at UIC JPEG2000 codec sample where multi-level WT implemented.

Regards,
Vladimir
0 Kudos
Kadir_Kirtac
Beginner
409 Views
Hello,

did you noticed 2d-wavelet-transform sample in IPP sample package (image-processing folder)?
I also would recommend you to look at UIC JPEG2000 codec sample where multi-level WT implemented.

Regards,
Vladimir

Hi,

the iplwt implementation(under "ipl-ipp" directory) and the wavelet sample under "2d-wavelet-transform" directoryonly support one-level wavelet transform.

could you tell me where exactly the multi-level wavelet code is?ipp-samples\image-codecs\uic\src path contains 6 more directories and many cpp and h files exist inside each of them.

0 Kudos
Kadir_Kirtac
Beginner
409 Views
Ok I have found the related codes, but its too complicated to understand in detail,
any comments about my first message?
0 Kudos
Reply