PANDORE Version 6 |
GREYC-IMAGE |
psetsubband
Sets subband into DWT image.
Synopsis
psetsubband scale subband [im_in1|-] [im_in2|-] [im_out|-]
Description
psetsubvband inserts a subband to a DWT image
at the specified scale. The subband im_in2
is an image and it is added to the input DWT image im_in1.
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
inserted at the specified scale.
Inputs
- im_in1: a 2D grayscale image of DWT.
- im_in2: a 2D image with the convenient size.
Inputs
- im_out: an image of the same type as the input image im_in1.
Result
Returns SUCCESS or FAILURE.
Examples
Threshold the LL 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 d.pan
pthresholding 20 400 d.pan e.pan
psetsubband 1 1 c.pan e.pan f.pan
pidwt 1 f.pan b.pan out.pan
See also
Frequency
C++ prototype
Errc PSetSubband( const Img2dsf &im_in1, const Img2dsf &im_in2, Img2dsf &im_out, int scale, int subband);
Version française
Insertion d'une sous-bande dans une image de DWT.
Author: Ludovic Soltys