PANDORE Version 6 GREYC-IMAGE

pdwt



Performs Direct Wavelet Transform.



Synopsis

pdwt scale [im_in|-] [col_in|-] [im_out| -]

Description

pdwt calculates the wavelet coefficients of the input image im_in1 according to the pyramidal algorithm. For example, with scale=1, there are 4 subimages:

    [1][2]
    [3][4]

where [1] is the approximation image with undersampling factor of 2. and [2], [3], [4] correspond to the signal detail along each privileged direction (resp. horizontal, vertical, diagonal) undersampled with a factor 2.

The filter coefficients are stored from the input collection col_in and can be generated from the operator pqmf.

Important: The operator works with any image size. However, the algorithm needs image with a size power of 2. Therefore, the input image is magnified so as the size is closest to power 2. So output image has necessarily a size power of 2.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Builds a synthetic image (a square) to illustrate the Gibbs phenomenon in wavelets analysis.

   pshapedesign 256 256 0 2 150 150 a.pan
   pqmf daubechies 4 b.pan
   pdwt 1 a.pan b.pan c.pan
   psplitimage c.pan d1.pan d2.pan d3.pan d4.pan
   pthresholding 20 400 d2.pan e2.pan
   pthresholding 20 400 d3.pan e3.pan
   pthresholding 20 400 d4.pan e4.pan
   pmergeimages d1.pan e2.pan e3.pan e4.pan f.pan
   pidwt 1 f.pan b.pan out.pan

See also

Frequency, pidwt, pqmf

C++ prototype

Errc PDwt( const Img2duc &im_in, const Collection &col_in, Img2dsf &im_out, int scale );

Version française

Calcul de la transformée en ondelettes dyadiques biorthogonales d'une image.


Author: Ludovic Soltys