**Name**

**fwivq** Decompress an image compressed by vector quantization of its wavelet transform

**Command Synopsis**

**fwivq** [-e *EdgeIR*] [-b *ImpulseResponse2*] [-n *FilterNorm*] [-w *WeightFac*] [-x *CodeBook2*] [-y *CodeBook3*] [-A *ResCodeBook1*] [-B *ResCodeBook2*] [-C *ResCodeBook3*] [-D *ResResCodeBook1*] [-E *ResResCodeBook2*] *Cimage* *CodeBook1* *ImpulseResponse* *Result*

-eEdgeIR: Impulse reponses of edge and preconditionning filters for orthogonal transform (fimage)

-bImpulseResponse2: Impulse response of filter 2 for biorthogonal transform (fsignal)

-nFilterNorm: Normalization mode for filter bank

-wWeightFac: Scaling factor for wavelet coefficients

-xCodeBook2: Sequence of codebooks for second class (fimage)

-yCodeBook3: Sequence of codebooks for third class (fimage)

-AResCodeBook1: Sequence of codebooks for residu quantization after quantization with CodeBook1 (fimage)

-BResCodeBook2: Sequence of codebooks for residu quantization after quantization with CodeBook2 (fimage)

-CResCodeBook3: Sequence of codebooks for residu quantization after quantization with CodeBook3 (fimage)

-DResResCodeBook1: Sequence of codebooks for residu quantization after quantization with CodeBook1 and ResCodeBook1 (fimage)

-EResResCodeBook2: Sequence of codebooks for residu quantization after quantization with CodeBook2 and ResCodeBook2 (fimage)

Cimage: Input string of codewords (cimage)

CodeBook1: Sequence of codebooks for first class (fimage)

ImpulseResponse: Impulse response of inner filters (fsignal)

Result: Reconstructed image (fimage)

**Function Summary**

void fwivq (Edge_Ri , Ri2 , FilterNorm , WeightFac , CodeBook2 , CodeBook3 , ResCodeBook1 , ResCodeBook2 , ResCodeBook3 , ResResCodeBook1 , ResResCodeBook2 , Compress , CodeBook1 , Ri , Output )

Fimage Edge_Ri ;

Fsignal Ri2 ;

int *FilterNorm ;

float *WeightFac ;

Fimage CodeBook2 , CodeBook3 ;

Fimage ResCodeBook1 , ResCodeBook2 , ResCodeBook3 ;

Fimage ResResCodeBook1 ;

Fimage ResResCodeBook2 ;

Cimage Compress ;

Fimage CodeBook1 ;

Fimage Output ;

Fsignal Ri ;

**Description**

This module reconstructs an image from the compressed file Compress,
which has been generated using the wavelet transform + vector quantization
module *fwvq*.
The reconstructed image is put in Result.

First the wavelet transform of Result is reconstructed,
using the codebooks CodeBook1, CodeBook2, CodeBook3, ResCodeBook1,
ResCodeBook2, ResCodeBook3, ResResCodeBook1 and ResResCodeBook2
(see *fwvq* program documentation for information on these codebooks).
Then a scaling of the coefficients is made if he -w option is selected
Finally an inverse wavelet transform is applied to reconstruct the image
Result.

All the options should be selected and tuned in exactly the same
manner at the compression (*fwvq*) and decompression (*fwivq*) steps.
Likewise, CodeBook1 and ImpulseResponse should be the same
at the compression (*fwvq*) and decompression (*fwivq*) steps.
Then Result should be identical to the image QImage obtained with *fwvq*.

**See Also**

`fiscalq`, `fivq`, `ibiowave2`, `iowave2`.

**Version 2.00**

Last Modification date : Thu Nov 29 20:23:57 2001

**Author**

Jean-Pierre D'Ales