Main Content

plotdt

Plot dual-tree or double-density wavelet transform

Description

plotdt(wt) plots the coefficients of the 1-D or 2-D wavelet filter bank decomposition, wt.

example

Examples

collapse all

Plot the complex dual-tree wavelet transform of the noisy Doppler signal.

Load the noisy Doppler signal. Obtain the complex dual-tree wavelet transform down to level 4.

load noisdopp;
wt = dddtree('cplxdt',noisdopp,4,'dtf1');

Plot the coefficients.

plotdt(wt)

Figure CPLXDT contains 10 axes objects. Axes object 1 with title Type of TREE: CPLXDT, xlabel Level 1 - 1 contains an object of type line. Axes object 2 with xlabel Level 1 - 2 contains an object of type line. Axes object 3 with xlabel Level 2 - 1 contains an object of type line. Axes object 4 with xlabel Level 2 - 2 contains an object of type line. Axes object 5 with xlabel Level 3 - 1 contains an object of type line. Axes object 6 with xlabel Level 3 - 2 contains an object of type line. Axes object 7 with xlabel Level 4 - 1 contains an object of type line. Axes object 8 with xlabel Level 4 - 2 contains an object of type line. Axes object 9 with xlabel Level 4 - Lowpass - 1 contains an object of type line. Axes object 10 with xlabel Level 4 - Lowpass - 2 contains an object of type line.

Plot the complex oriented dual-tree wavelet transform of an image.

Load the xbox image. Obtain the complex oriented dual-tree wavelet transform down to level 3.

load xbox;
wt = dddtree2('cplxdt',xbox,3,'dtf1');

Plot the coefficients.

plotdt(wt)

Figure CPLXDT - LEVEL 3 contains 40 axes objects and other objects of type uicontrol, uipanel. Axes object 1 with title C indexOf 111 baseline contains an object of type image. Axes object 2 with title C indexOf 121 baseline contains an object of type image. Axes object 3 with title C indexOf 112 baseline contains an object of type image. Axes object 4 with title C indexOf 122 baseline contains an object of type image. Axes object 5 with title C indexOf 211 baseline contains an object of type image. Axes object 6 with title C indexOf 221 baseline contains an object of type image. Axes object 7 with title C indexOf 212 baseline contains an object of type image. Axes object 8 with title C indexOf 222 baseline contains an object of type image. Axes object 9 with title C indexOf 311 baseline contains an object of type image. Axes object 10 with title C indexOf 321 baseline contains an object of type image. Axes object 11 with title C indexOf 312 baseline contains an object of type image. Axes object 12 with title C indexOf 322 baseline contains an object of type image. Axes object 13 with title C indexOf 111 baseline contains an object of type image. Axes object 14 with title C indexOf 121 baseline contains an object of type image. Axes object 15 with title C indexOf 112 baseline contains an object of type image. Axes object 16 with title C indexOf 122 baseline contains an object of type image. Axes object 17 with title C indexOf 211 baseline contains an object of type image. Axes object 18 with title C indexOf 221 baseline contains an object of type image. Axes object 19 with title C indexOf 212 baseline contains an object of type image. Axes object 20 with title C indexOf 222 baseline contains an object of type image. Axes object 21 with title C indexOf 311 baseline contains an object of type image. Axes object 22 with title C indexOf 321 baseline contains an object of type image. Axes object 23 with title C indexOf 312 baseline contains an object of type image. Axes object 24 with title C indexOf 322 baseline contains an object of type image. Axes object 25 with title C indexOf 111 baseline contains an object of type image. Axes object 26 with title C indexOf 121 baseline contains an object of type image. Axes object 27 with title C indexOf 112 baseline contains an object of type image. Axes object 28 with title C indexOf 122 baseline contains an object of type image. Axes object 29 with title C indexOf 211 baseline contains an object of type image. Axes object 30 with title C indexOf 221 baseline contains an object of type image. Axes object 31 with title C indexOf 212 baseline contains an object of type image. Axes object 32 with title C indexOf 222 baseline contains an object of type image. Axes object 33 with title C indexOf 311 baseline contains an object of type image. Axes object 34 with title C indexOf 321 baseline contains an object of type image. Axes object 35 with title C indexOf 312 baseline contains an object of type image. Axes object 36 with title C indexOf 322 baseline contains an object of type image. Axes object 37 with title C indexOf 11 baseline contains an object of type image. Axes object 38 with title C indexOf 21 baseline contains an object of type image. Axes object 39 with title C indexOf 12 baseline contains an object of type image. Axes object 40 with title C indexOf 22 baseline contains an object of type image.

Select the desired level detail coefficients from the drop-down list.

Input Arguments

collapse all

Wavelet transform, returned as a structure from dddtree or dddtree2 with these fields:

Type of wavelet decomposition (filter bank), specified as one of 'dwt', 'ddt', 'realdt', 'cplxdt',, 'realdddt', or 'cplxdddt'. 'realdt' and 'realdddt' are only valid for the 2-D wavelet transform. The type, 'dwt', is a critically sampled (nonredundant) discrete wavelet transform for 1-D data or 2-D images. The other decomposition types are oversampled wavelet transforms. For details about transform types see dddtree for 1-D wavelet transforms and dddtree2 for 2-D wavelet transforms.

Level of the wavelet decomposition, specified as a positive integer.

Decomposition (analysis) and reconstruction (synthesis) filters, specified as a structure with these fields:

First level decomposition filters specified as an N-by-2 or N-by-3 matrix for single-tree wavelet transforms, or a 1-by-2 cell array of two N-by-2 or N-by-3 matrices for dual-tree wavelet transforms. The matrices are N-by-3 for the double-density wavelet transforms. For an N-by-2 matrix, the first column of the matrix is the scaling (lowpass) filter and the second column is the wavelet (highpass) filter. For an N-by-3 matrix, the first column of the matrix is the scaling (lowpass) filter and the second and third columns are the wavelet (highpass) filters. For the dual-tree transforms, each element of the cell array contains the first-stage analysis filters for the corresponding tree.

Analysis filters for levels > 1, specified as an N-by-2 or N-by-3 matrix for single-tree wavelet transforms, or a 1-by-2 cell array of two N-by-2 or N-by-3 matrices for dual-tree wavelet transforms. The matrices are N-by-3 for the double-density wavelet transforms. For an N-by-2 matrix, the first column of the matrix is the scaling (lowpass) filter and the second column is the wavelet (highpass) filter. For an N-by-3 matrix, the first column of the matrix is the scaling (lowpass) filter and the second and third columns are the wavelet (highpass) filters. For the dual-tree transforms, each element of the cell array contains the analysis filters for the corresponding tree.

First-level reconstruction filters, specified as an N-by-2 or N-by-3 matrix for single-tree wavelet transforms, or a 1-by-2 cell array of two N-by-2 or N-by-3 matrices for dual-tree wavelet transforms. The matrices are N-by-3 for the double-density wavelet transforms. For an N-by-2 matrix, the first column of the matrix is the scaling (lowpass) filter and the second column is the wavelet (highpass) filter. For an N-by-3 matrix, the first column of the matrix is the scaling (lowpass) filter and the second and third columns are the wavelet (highpass) filters. For the dual-tree transforms, each element of the cell array contains the first-stage synthesis filters for the corresponding tree.

Reconstruction filters for levels > 1, specified as an N-by-2 or N-by-3 matrix for single-tree wavelet transforms, or a 1-by-2 cell array of two N-by-2 or N-by-3 matrices for dual-tree wavelet transforms. The matrices are N-by-3 for the double-density wavelet transforms. For an N-by-2 matrix, the first column of the matrix is the scaling (lowpass) filter and the second column is the wavelet (highpass) filter. For an N-by-3 matrix, the first column of the matrix is the scaling (lowpass) filter and the second and third columns are the wavelet (highpass) filters. For the dual-tree transforms, each element of the cell array contains the first-stage synthesis filters for the corresponding tree.

Wavelet transform coefficients, specified as a 1-by-(level+1) cell array of matrices. The size and structure of the matrix elements of the cell array depend on the type of wavelet transform and whether the decomposition is 1-D or 2-D. For a 1-D wavelet transform, the coefficients are organized by transform type as follows:

  • 'dwt'cfs{j}

    • j = 1,2,...level is the level.

    • cfs{level+1} are the lowpass, or scaling, coefficients.

  • 'ddt'cfs{j}(:,:,k)

    • j = 1,2,... level is the level.

    • k = 1,2 is the wavelet filter.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'cplxdt'cfs{j}(:,:,m)

    • j = 1,2,... level is the level.

    • m = 1,2 are the real and imaginary parts.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'realdddt'cfs{j}(:,:,d,k)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • k = 1,2 is the wavelet transform tree.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'cplxdddt'cfs{j}(:,:,d,k,m)

    • j = 1,2,... level is the level.

    • k = 1,2 is the wavelet transform tree.

    • m = 1,2 are the real and imaginary parts.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

For a 2-D wavelet transform, the coefficients are organized by transform type as follows:

  • 'dwt'cfs{j}(:,:,d)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'ddt'cfs{j}(:,:,d)

    • j = 1,2,... level is the level.

    • d = 1,2,3,4,5,6,7,8 is the orientation.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'realddt'cfs{j}(:,:,d,k)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • k = 1,2 is the wavelet transform tree.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'cplxdt'cfs{j}(:,:,d,k,m)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • k = 1,2 is the wavelet transform tree.

    • m = 1,2 are the real and imaginary parts.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'realdddt'cfs{j}(:,:,d,k)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • k = 1,2 is the wavelet transform tree.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

  • 'cplxdddt'cfs{j}(:,:,d,k,m)

    • j = 1,2,... level is the level.

    • d = 1,2,3 is the orientation.

    • k = 1,2 is the wavelet transform tree.

    • m = 1,2 are the real and imaginary parts.

    • cfs{level+1}(:,:) are the lowpass, or scaling, coefficients.

Version History

Introduced in R2013b