iwavhaar_cvip() - performs inverse wavelet transform based on Haar wavelet.



[ out_mat ] = iwavhaar_cvip( img,dec )

Input Parameters Include:

Output Parameter Include:


This function computes the inverse wavelet transform of the input image based on the Haar wavelet transform. The argument block_size should match the same value given for the forward transform. For more details look at the reference below.


1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.


%Read image

 a = imread('butterfly.tif');

% b is of type double, so it requires hist_stretch_cvip for remapping.

 b = double(a);

% Decomposition level

 dec = 2;

% Calling wavhaar transform

 w = wavhaar_cvip(b,dec);

% This is a good way to remap

 S = log(1+abs(w));

 S = remap_cvip(S);

% Calling inverse transform

 out_mat= iwavhaar_cvip(w,dec);

% Display input image

 figure;imshow(a);title('Input Image');

% Display Output images

 figure, imshow(S,[]);title('Output image after wavhaar transform')  % tranforms for display.

 figure; imshow(hist_stretch_cvip(out_mat,0,1,0,0),[]);title('Output image after inverse wavhaar transform');


Author: Mehrdad Alvandipour, July 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website