PANDORE Version 6 |
GREYC-IMAGE |
pgetsubband
Gets one subband image from DWT image.
Synopsis
pgetsubband scale subband [im_in|-] [im_out|-]
Description
pgetsubband gets a subband from a DWT image
at the specified scale. The output subband im_out
is an image. At each scale, image are numbered
as follows:
[1][2]
[3][4]
- 1: subband LL of approximate coefficients.
- 2: subband LH of detail coefficients.
- 3: subband HL of detail coefficients.
- 4: subband HH of detail coefficients.
Parameters
- scale specifies the scale analysis of the DWT image.
- subband specifies the number of the subband [1..4] to be extracted at the specified scale.
Inputs
- im_in: a 2D grayscale image.
Inputs
- im_out: an image of the same type as the input image.
Result
Returns SUCCESS or FAILURE.
Examples
Gets the LL and LH images of the DWT analysis of a square:
pshapedesign 256 256 0 2 150 150 a.pan
pqmf daubechies 4 b.pan
pdwt 1 a.pan b.pan c.pan
pgetsubband 1 1 c.pan out1.pan
pgetsubband 1 2 c.pan out2.pan
See also
Frequency
C++ prototype
Errc PGetSubband( const Img2dsf &im_in, Img2dsf &im_out, int scale, int subband );
Version française
Extraction d'une sous-bande d'une image de DWT.
Author: Ludovic Soltys