%%% 2d DWT
%%  Author:Rami Zewail
%%  Group : JP2K Project
% Read the Input text image file
fid= fopen('testdata.txt');
a=fscanf(fid,'%2x %2x',[64 inf]);
a=a';

fclose(fid);
 % Perform 1D-DWT on the Rows
 image_1d=dwt_1d(x_image);
 % Perform 1D-DWT on the Cols.
 image_transpose=image_1d';
 image_2d=dwt_1d(image_transpose);
 image_2d=image_2d';
 % Display The 2D-DWT image
 figure;imshow(mat2gray(image_2d))
 
 
 