2.11.2.4 dwt2(Pro)

Menu Information

Analysis: Signal Processing: Wavelet: 2D Decompose

Brief Information

Perform 2D wavelet decomposition

Additional Information

This feature is for OriginPro only.

Command Line Usage

1. dwt2 im:=Mat(1);

2. dwt2 type:=db3;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Matrix im

Input

MatrixObject

<active>

Specify the input matrix

Wavelet Type type

Input

int

haar

Specify the mother wavelet

Option list

  • haar :Haar
    Haar wavelet
  • db2:DB2
    Daubechies wavelet (N=2)
  • db 3:DB3
    Daubechies wavelet (N=3)
  • db 4:DB4
    Daubechies wavelet (N=4)
  • db 5:DB5
    Daubechies wavelet (N=5)
  • db 6:DB6
    Daubechies wavelet (N=6)
  • db 7:DB7
    Daubechies wavelet (N=7)
  • db 8:DB8
    Daubechies wavelet (N=8)
  • db 9:DB9
    Daubechies wavelet (N=9)
  • db 10:DB10
    Daubechies wavelet (N=10)
  • b11:Bior1.1
    Biorthogonal (Nr=1, Nd=1)
  • b13:Bior1.3
    Biorthogonal (Nr=1, Nd=3)
  • b15:Bior1.5
    Biorthogonal (Nr=1, Nd=5)
  • b22:Bior2.2
    Biorthogonal (Nr=2, Nd=2)
  • b24:Bior2.4
    Biorthogonal (Nr=2, Nd=4)
  • b26:Bior2.6
    Biorthogonal (Nr=2, Nd=6)
  • b28:Bior2.8
    Biorthogonal (Nr=2, Nd=8)
  • b31:Bior3.1
    Biorthogonal (Nr=3, Nd=1)
  • b33:Bior3.3
    Biorthogonal (Nr=3, Nd=3)
  • b35:Bior3.5
    Biorthogonal (Nr=3, Nd=5)
  • b37:Bior3.7
    Biorthogonal (Nr=3, Nd=7)
Approx Coefficients ca

Output

MatrixObject

[<new>]<new>!

Specify the output matrix for approximation coefficients See the syntax here.

Detail Coefficients (Horizontal) ch

Output

MatrixObject

[<same>]<new>!

Specify the output matrix for horizontal detail coefficients See the syntax here.

Detail Coefficients (Vertical) cv

Output

MatrixObject

[<same>]<new>!

Specify the output matrix for vertical detail coefficients See the syntax here.

Detail Coefficients (Diagonal) cd

Output

MatrixObject

[<same>]<new>!

Specify the output matrix for diagonal detail coefficients

See the syntax here.


Examples

1. To decompose the 1st matrix object in the 1st sheet of MBook1 using DB2 wavelet and save the result to different matrices, use the following script command:

dwt2 im:=[MBook1]1!Mat(1) type:=1 ca:=[MBook2]1!Mat(1) ch:= [MBook2]2!Mat(1) cv:= [MBook2]3!Mat(1) cd:= [MBook5]1!Mat(1);

2. To open the dwt2 dialog, use the script command:

dwt2 -d

3. To perform dwt2 to data using a pre-saved analysis theme file, save your preferences in the advanced options in the dwt2 dialog, and then execute it by typing (for example, but using your own saved-theme title) the script command:

dwt2 -t "my theme.oth"

More Information

For more information, please refer to our User Guide.


Related X-Functions

idwt2, dwt, idwt


Keywords:decompose