raja jothi's home page
graphics page
 
 

Discrete Wavelet Transform(DWT)

Here we go... to add another utility to our Image Manipulation Tool kit(Gimp-Like).
The objective was to write a code that does the image decomposition, coefficient filtering and reconstruction.
T
The user is given the option of controling the number of levels of decomposition and thresholding parameter for coefficient filtering(0% - 100%).Haar Filters(size 2) were used.

Low  Pass Filter h = [ 1/sqrt(2) ,  1/sqrt(2) ]
High Pass Filter g = [ 1/sqrt(2) , -1/sqrt(2) ]

As in the previous assignment gtk and OpenGl commands was used to write the code.

The Image Manipulation Toolbox looks like this.
 
 

User - control dialog box for adjusting the number of levels of decomposition and threshold parameter for coefficient filtering like this. The user is not allowed to control the level of decomposition only in the range of 1 to log(n) for nxn images. If the user wishes to save the intermediate image(decompoosed) or the final image, Gimp_like has the save facility.
 
 

Generally filters used for decomposing and reconstruction are not the same. But here, Haar filter is used for both decomposing and restruction of the image.
 

Click the image for original size.
 
 

Original Image
Decompose - level 8 Decompose - level 8
Filtering - 90%
Decompose - level 5
Filtering - 100%
Original Image
(Non Square Image)
Decompose - level 2 Decompose - level 2
Filtering - 50%
Decompose - level 2
Filtering - 100%
Original Image Decompose - level 1 Decompose - level 1
Filtering - 100%
Decompose - level 4
Filtering - 95%

raja jothi's home page
graphics page