Python has a particular package ‘PyWavelets‘ for wavelet coding. To install this package merely type:  ‘pip install pywavelets
This package contains dozens methods of wavelet coding, denoising with wavelets (for details pls. see official reference )
Simple Python script  WaveletCoder.py to encode still images (regardless to the input format, any format is converted to grayscale, actually the wavelet coding is applied on the grayscale image and only LL is taken).  The script displays both original and LL images.
Usage:
python WaveletCoder.py -i  input_image
Example:
python WaveletCoder.py   -i  beamr.jpg

Leave a Reply

Your email address will not be published. Required fields are marked *