<< twoplus2 Integer_Wavelet_Transform_ToolBox

Integer_Wavelet_Transform_ToolBox >> Integer_Wavelet_Transform_ToolBox > twoplus2m

twoplus2m

(2,2)integer wavelet transform.

Calling Sequence

[a11,a12,d11,d12] = twoplus2m(x)
[a11,a12,d11,d12] = twoplus2m(x,o)

Arguments

x

A 2-d array or matrix representing the input image.

o

A character constant 't' or 'c' to specified filters to be used. By default it is 't'.

a11

A 2-d array representing the low-low component of the (2,2) integer wavelet transform of the input image.

a12

A 2-d array representing the low-high component of the (2,2) integer wavelet transform of the input image.

d11

A 2-d array representing the high-low component of the (2,2) integer wavelet transform of the input image.

d12

A 2-d array representing the high-high component of the (2,2) integer wavelet transform of the input image. .

Description

It computes the integer wavelet components of an image using the (2,2) integer wavelet transforms. It may take one or two inputs. The first input is the image to be transformed. The second input may or may not be present. if present, it may be 't' or 'c' corresponding to the 13/7 T or 13/7 C filter. By default, the second parameter is taken as 't'. It gives four outputs corresponding to the low-low, low-high, high-low and high-high components of the integer wavelet transformation. Each of the outputs have the size ceil(m/2)-by -ceil(n/2)for an input image of size m-by-n.

Examples

//  Decomposition into integer wavelet components
//  Reading an image and getting a gray image matrix in double
x=imread('Lena.png');
x=double(rgb2gray(x));

// Applying (4,4) integer wavelet transform 
//using 13/7 T filters
[a11,a12,d11,d12]=twoplus2m(x);

//Displaying the four decomposed components 
imshow(mat2gray([a11 a12; d11 d12]))

// Applying (4,4) integer wavelet transform 
//using 13/7 C filters
[a11,a12,d11,d12]=twoplus2m(x, 'c');

//Displaying the four decomposed components 
imshow(mat2gray([a11 a12; d11 d12]))

See Also

Authors

<< twoplus2 Integer_Wavelet_Transform_ToolBox