Domain Transform application for wavelet and fourier

Detailed description

Domain Transform application for wavelet and fourier


This section describes in details the parameters available for this application. Table [1] presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is DomainTransform .

[1]Table: Parameters table for DomainTransform.
Parameter Key Parameter Type Parameter Description
in Input image Input image
out Output image Output image
mode Choices Choices
mode fft Choice FFT transform
mode wavelet Choice Wavelet
mode.fft.shift Boolean Boolean
mode.wavelet.form Choices Choices
mode.wavelet.form haar Choice HAAR
mode.wavelet.form db4 Choice DAUBECHIES4
mode.wavelet.form db6 Choice DAUBECHIES6
mode.wavelet.form db8 Choice DAUBECHIES8
mode.wavelet.form db12 Choice DAUBECHIES12
mode.wavelet.form db20 Choice DAUBECHIES20
mode.wavelet.form sb24 Choice SPLINE_BIORTHOGONAL_2_4
mode.wavelet.form sb44 Choice SPLINE_BIORTHOGONAL_4_4
mode.wavelet.form sym8 Choice SYMLET8
mode.wavelet.nlevels Int Int
direction Choices Choices
direction forward Choice Forward
direction inverse Choice Inverse
ram Int Int
inxml XML input parameters file XML input parameters file
outxml XML output parameters file XML output parameters file

Input Image: This will take an input image to be transformed image. For FFT inverse transform, it expects a complex image as two-band image in which first band represent real part and second band represent imaginary part.

Output Image: This parameter holds the output file name to which transformed image will be written. This has a slightly different behaviour depending on transform type. For Wavelet, output is a single band image for both forward and inverse transform. For FFT forward transform, output is two band image where first band represents real part and second band represents imaginary part of a complex image.

Mode: This parameter allows one to select between fft(fourier) and wavelet. Available choices are:

  • FFT transform: FFT transform.
  • Shift fft transform: Shift transform of fft filter.
  • Wavelet: Wavelet transform.
  • Select wavelet form Available choices are:
  • HAAR
  • Number of decomposition levels: Number of decomposition levels.

Direction Available choices are:

  • Forward
  • Inverse

Available RAM (Mb): Available memory for processing (in MB).

Load otb application from xml file: Load otb application from xml file.

Save otb application to xml file: Save otb application to xml file.


To run this example in command-line, use the following:

otbcli_DomainTransform -in input.tif -mode.wavelet.form haar -out output_wavelet_haar.tif

To run this example from Python, use the following code snippet:


# Import the otb applications package
import otbApplication

# The following line creates an instance of the DomainTransform application
DomainTransform = otbApplication.Registry.CreateApplication("DomainTransform")

# The following lines set all the application parameters:
DomainTransform.SetParameterString("in", "input.tif")


DomainTransform.SetParameterString("out", "output_wavelet_haar.tif")

# The following line execute the application


This application is not streamed, check your system resources when processing large images


This application has been written by OTB-Team.

See Also

These additional resources can be useful for further information:

otbWaveletImageFilter, otbWaveletInverseImageFilter, otbWaveletTransform