SlideShare a Scribd company logo
Image Compression Comparison UUssiinngg GGoollddeenn 
SSeeccttiioonn TTrraannssffoorrmm,, CCDDFF 55//33 ((LLee GGaallll 55//33)) aanndd CCDDFF 
99//77 WWaavveelleett TTrraannssffoorrmm BByy MMaattllaabb 
Jun Li 
http://GoldenSectionTransform.org/
Introduction 
In mathematics, Golden Section Transform is a 
new class of discrete orthogonal transform. Its 
theory involves golden ratio, Fibonacci number, 
Fourier analysis, wavelet theory, stochastic 
process, integer partition, matrix analysis, group 
theory, combinatorics on words, its applied fields 
include digital signal (image/audio/video) 
processing, denoising, watermarking, 
compression, coding and so on. see here.
Simple Compression Scheme 
Source image is 
divided into 8 × 8 
blocks of pixels 
Apply 2D transform 
(LGST, HGST, 
CDF 5/3, CDF 9/7) 
to each 8 × 8 block
Set compression ratio, keep largest 
abs(elements) in each block, and set all the 
others to zero 
Apply inverse 2D transform to each 8 × 8 block 
to reconstruct the image 
Compute PSNR and compare the results.
Transform matrix for 1D signal 
4-level 8×8 LGST matrix for 1D signal
3-level 8×8 CDF 5/3 matrix for 1D singal
3-level 8×8 CDF 9/7 matrix for 1D singal
2-level 8×8 HGST matrix for 1D signal
Matlab Code 
gstdemo.m % main file 
lgst2d.m % 4-level 2d low golden section transform 
ilgst2d.m % 4-level inverse 2d low golden section transform 
lword.m % Type-L golden section decomposion of fibonacci number 
legall53td.m % 3-level 2d CDF 5/3 transform lifting scheme 
ilegall53td.m % 3-level inverse 2d CDF 5/3 transform 
hgst2d.m % 2-level 2d high golden section transform 
ihgst2d.m % 2-level inverse 2d high golden section transform 
hword.m % Type-H golden section decomposion of fibonacci number 
cdf97td.m % 3-level 2d CDF 9/7 transform lifting scheme 
icdf97td.m % 3-level inverse 2d CDF 9/7 transform 
keep.m % keep largest abs(values) in matrix 
psnr.m % compute MSE and PSNR 
all the codes can be downloaded here: 
http://goldensectiontransform.org/
legall53td.m 
function H = legall53td(X) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
% 
% function H = legall53td(X,nlevel) 
% 3-level 2d LeGall 5/3 wavelet transform of 8*8 image matrix 
nlevel = 3; % 3-level transform for each 8*8 image block 
[xx,yy] = size(X); 
H=X; 
for i=1:nlevel 
for j=1:xx 
[ss,dd] = legall531d(H(j,1:yy)); % row transform 
H(j,1:yy) = [ss,dd]; 
end 
for k=1:yy 
[ss,dd] = legall531d(H(1:xx,k)'); % column transform 
H(1:xx,k) = [ss,dd]'; 
end 
xx = xx/2; 
yy = yy/2; 
end 
%% 1d LeGall 5/3 lifting scheme % symw_ext->...12321... 
function [ss,dd] = legall531d(S) 
N = length(S); 
ga = -1/2; 
gb = 1/4; 
gc = sqrt(2); 
s0 = S(1:2:N-1); % S(1),S(3),S(5),S(7)... 
d0 = S(2:2:N); % S(2),S(4),S(6),S(8)... 
d1 = d0 + ga*(s0 + [s0(2:N/2) s0(N/2)]); 
s1 = s0 + gb*(d1 + [d1(1) d1(1:N/2-1)]); 
ss = gc*s1; 
dd = d1/gc;
cdf97td.m function H = cdf97td(X) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
%% 
function H = cdf97td(X,nlevel) 
% 3-level 2d CDF 9/7 wavelet transform of 8*8 image matrix 
nlevel = 3; % 3-level transform for each 8*8 image block 
[xx,yy] = size(X); 
H=X; 
for i=1:nlevel 
for j=1:xx 
[ss,dd] = cdf971d(H(j,1:yy)); % row transform 
H(j,1:yy) = [ss,dd]; 
end 
for k=1:yy 
[ss,dd] = cdf971d(H(1:xx,k)'); % column transform 
H(1:xx,k) = [ss,dd]'; 
end 
xx = xx/2; 
yy = yy/2; 
end 
%% 1d CDF 9/7 wavelet lifting scheme % symw_ext->...12321... 
function [ss,dd] = cdf971d(S) 
N = length(S); 
fa = -1.586134342; 
fb = -0.05298011854; 
fc = 0.8829110762; 
fd = 0.4435068522; 
fz = 1.149604398; 
s0 = S(1:2:N-1); % S(1),S(3),S(5),S(7)... 
d0 = S(2:2:N); % S(2),S(4),S(6),S(8)... 
d1 = d0 + fa*(s0 + [s0(2:N/2) s0(N/2)]); 
s1 = s0 + fb*(d1 + [d1(1) d1(1:N/2-1)]); 
d2 = d1 + fc*(s1 + [s1(2:N/2) s1(N/2)]); 
s2 = s1 + fd*(d2 + [d2(1) d2(1:N/2-1)]); 
ss = fz*s2; 
dd = d2/fz;
lgst2d.m 
function H = lgst2d(X) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
% function H = lgst2d(X,nlevel) 
% 4-level 2d low golden section transform of 8*8 image matrix 
nlevel = 4; % 4-level transform for each 8*8 image block 
global lj; % only used by function lgst1d(S) below. 
global FBL; % only used by function lgst1d(S) below. 
[xx,yy] = size(X); 
ind = floor(log(xx*sqrt(5)+1/2)/log((sqrt(5)+1)/2)); % determine index 
FBL = filter(1,[1 -1 -1],[1 zeros(1,ind-1)]); 
% FBL = Fibonacci sequence -> [1 1 2 3 5 8...]; 
H=X; 
for lj=1:nlevel 
for j=1:xx 
[ss,dd] = lgst1d(H(j,1:yy)); % row transform 
H(j,1:yy) = [ss,dd]; 
end 
for k=1:yy 
[ss,dd] = lgst1d(H(1:xx,k)'); % column transform 
H(1:xx,k) = [ss,dd]'; 
end 
xx = FBL(end-lj); % round((sqrt(5)-1)/2*xx); 8*8 block: xx=8->5->3->2 
yy = FBL(end-lj); % round((sqrt(5)-1)/2*yy); 8*8 block: yy=8->5->3->2 
end 
%% 1d low golden section transform 
function [ss,dd] = lgst1d(S) 
global lj; 
global FBL; 
index = 0; 
h = 1; 
lform = lword(length(S)); 
for i=1:length(lform) 
index = index + lform(i); 
if lform(i) == 1 
ss(i) = S(index); 
else % lform(i) == 2 
ss(i) = (sqrt(FBL(lj))*S(index-1)+sqrt(FBL(lj+1))*S(index))/sqrt(FBL(lj+2)); 
dd(h) = (sqrt(FBL(lj+1))*S(index-1)-sqrt(FBL(lj))*S(index))/sqrt(FBL(lj+2)); 
h = h+1; 
end 
end
lword.m 
function lform = lword(n) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
% Type-L golden section decomposion of fibonacci number n, 
% e.g. lword(8) = [1 2 2 1 2]; 
if n == 1 
lform = [1]; 
elseif n == 2 
lform = [2]; 
else 
next = round((sqrt(5)-1)/2*n); 
lform = [lword(n-next),lword(next)]; 
end
hgst2d.m 
function H = hgst2d(X) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
% function H = hgst2d(X,nlevel) 
% 2-level 2d high golden section transform of 8*8 image matrix 
nlevel = 2; % 2-level transform for each 8*8 image block 
global hj; % only used by function hgst1d(S) below. 
global FBH; % only used by function hgst1d(S) below. 
[xx,yy] = size(X); 
ind = floor(log(xx*sqrt(5)+1/2)/log((sqrt(5)+1)/2)); % determine index 
FBH = filter(1,[1 -1 -1],[1 zeros(1,ind-1)]); 
% FBH = Fibonacci sequence -> [1 1 2 3 5 8...]; 
H=X; 
for hj=1:nlevel 
for j=1:xx 
[ss,dd] = hgst1d(H(j,1:yy)); % row transform 
H(j,1:yy) = [ss,dd]; 
end 
for k=1:yy 
[ss,dd] = hgst1d(H(1:xx,k)'); % column transform 
H(1:xx,k) = [ss,dd]'; 
end 
xx = FBH(end-2*hj); % round((3-sqrt(5))/2*xx); 8*8 block: xx=8->3 
yy = FBH(end-2*hj); % round((3-sqrt(5))/2*yy); 8*8 block: yy=8->3 
end 
%% 1d high golden section transform 
function [ss,dd] = hgst1d(S) 
global hj; 
global FBH; 
index = 0; 
g = 1; 
h = 1; 
hform = hword(length(S)); 
for i=1:length(hform) 
index = index + hform(i); 
if hform(i) == 2 
ss(i) = (sqrt(FBH(2*hj-1))*S(index-1)+sqrt(FBH(2*hj))*S(index))/sqrt(FBH(2*hj+1)); 
dd(2*i-g) = (sqrt(FBH(2*hj))*S(index-1)-sqrt(FBH(2*hj-1))*S(index))/sqrt(FBH(2*hj+1)); 
g = g+1; 
else % hform(i) == 3 
ss(i) = (sqrt(FBH(2*hj))*S(index-2)+sqrt(FBH(2*hj-1))*S(index-1)+sqrt(FBH(2*hj))*S(index))/sqrt(FBH(2*hj+2)); 
dd(i+h-1) = (sqrt(FBH(2*hj-1))*S(index-2)-2*sqrt(FBH(2*hj))*S(index-1)+sqrt(FBH(2*hj-1))*S(index))/sqrt(2*FBH(2*hj+2)); 
dd(i+h) = (S(index-2)-S(index))/sqrt(2); 
h = h+1; 
end 
end
hword.m 
function hform = hword(n) 
% Author: Jun Li, more info@ http://goldensectiontransform.org/ 
% Type-H golden section decomposion of fibonacci number n, 
% e.g. hword(8) = [3 2 3]; 
if n == 2 
hform = [2]; 
elseif n == 3 
hform = [3]; 
else 
next = round((sqrt(5)-1)/2*n); 
hform = [hword(n-next),hword(next)]; 
end
keep.m 
function X = keep(X) 
% keep the largest abs(elements) of X, 
% global RATIO set in gstdemo.m is in [0,1]. 
global RATIO; 
N = floor(prod(size(X))*RATIO); 
[MM,i] = sort(abs(X(:))); 
X(i(1:end-N)) = 0;
psnr.m 
function [MSE,PSNR] = psnr(X,Y) 
% Compute MSE and PSNR. 
MSE = sum((X(:)-Y(:)).^2)/prod(size(X)); 
if MSE == 0 
PSNR = Inf; 
else 
PSNR = 10*log10(255^2/MSE); 
end
Results
Baboon 512*512
References 
[1] Jun. Li (2007). "Golden Section Method Used in Digital Image Multi-resolution Analysis". 
Application Research of Computers (in zh-cn) 24 (Suppl.): 1880–1882. ISSN 1001- 
3695;CN 51-1196/TP 
[2] I. Daubechies and W. Sweldens, "Factoring wavelet transforms into lifting schemes," J. 
Fourier Anal. Appl., vol. 4, no. 3, pp. 247-269, 1998. 
[3] Ingrid Daubechies. 1992. Ten Lectures on Wavelets. Soc. for Industrial and Applied 
Math., Philadelphia, PA, USA. 
[4] Sun, Y.K.(2005). Wavelet Analysis and Its Applications. China Machine Press. ISBN 
7111158768 
[5] Jin, J.F.(2004). Visual C++ Wavelet Transform Technology and Engineering Practice. 
Posts & Telecommunications Press. ISBN 7115119597 
[6] He, B.;Ma, T.Y.(2002). Visual C++ Digital Image Processing. Posts & Telecommunications 
Press. ISBN 7115109559 
[7] V. Britanak, P. Yip, K. R. Rao, 2007 Discrete Cosine and Sine Transform, General 
properties, Fast Algorithm and Integer Approximations" Academic Press 
[8] K. R. Rao and P. Yip, Discrete Cosine Transform: Algorithms, Advantages, Applications, 
Academic Press, Boston, 1990. 
[9] J. Nilsson, On the entropy of random Fibonacci words, arXiv:1001.3513. 
[10] J. Nilsson, On the entropy of a family of random substitutions, Monatsh. Math. 168 
(2012) 563–577. arXiv:1103.4777.
[11] J. Nilsson, On the entropy of a two step random Fibonacci substitution, Entropy 15 
(2013) 3312—3324; arXiv:1303.2526. 
[12] Wai-Fong Chuan, Fang-Yi Liao, Hui-Ling Ho, and Fei Yu. 2012. Fibonacci word patterns 
in two-way infinite Fibonacci words. Theor. Comput. Sci. 437 (June 2012), 69-81. 
DOI=10.1016/j.tcs.2012.02.020 http://dx.doi.org/10.1016/j.tcs.2012.02.020 
[13] Julien Cassaigne (2008). On extremal properties of the Fibonacci word. RAIRO - 
Theoretical Informatics and Applications, 42, pp 701-715. doi:10.1051/ita:2008003. 
[14] Wojciech Rytter, The structure of subword graphs and suffix trees of Fibonacci words, 
Theoretical Computer Science, Volume 363, Issue 2, 28 October 2006, Pages 211-223, 
ISSN 0304-3975, http://dx.doi.org/10.1016/j.tcs.2006.07.025. 
[15] Alex Vinokur, Fibonacci connection between Huffman codes and Wythoff array, 
arXiv:cs/0410013v2 
[16] Vinokur A.B., Huffman trees and Fibonacci numbers. Kibernetika Issue 6 (1986) 9-12 (in 
Russian), English translation in Cybernetics 22 Issue 6 (1986) 692–696; 
http://springerlink.metapress.com/link.asp?ID=W32X70520K8JJ617 
[17] L. Colussi, Fastest Pattern Matching in Strings, Journal of Algorithms, Volume 16, Issue 
2, March 1994, Pages 163-189, ISSN 0196-6774, 
http://dx.doi.org/10.1006/jagm.1994.1008. 
[18] Ron Lifshitz, The square Fibonacci tiling, Journal of Alloys and Compounds, Volume 
342, Issues 1–2, 14 August 2002, Pages 186-190, ISSN 0925-8388, 
http://dx.doi.org/10.1016/S0925-8388(02)00169-X. 
[19] C. Godr`eche, J. M. Luck, Quasiperiodicity and randomness in tilings of the plane, 
Journal of Statistical Physics, Volume 55, Issue 1–2, pp. 1–28. 
[20] S. Even-Dar Mandel and R. Lifshitz. Electronic energy spectra and wave functions on 
the square Fibonacci tiling. Philosophical Magazine, 86:759-764, 2006.
[21] S. Goedecker. 1997. Fast Radix 2, 3, 4, and 5 Kernels for Fast Fourier Transformations 
on Computers with Overlapping Multiply--Add Instructions. SIAM J. Sci. Comput. 18, 6 
(November 1997), 1605-1611. DOI=10.1137/S1064827595281940 
http://dx.doi.org/10.1137/S1064827595281940 
[22] Bashar, S.K., "An efficient approach to the computation of fast fourier transform(FFT) 
by Radix-3 algorithm," Informatics, Electronics & Vision (ICIEV), 2013 International 
Conference on , vol., no., pp.1,5, 17-18 May 2013 
[23] Lofgren, J.; Nilsson, P., "On hardware implementation of radix 3 and radix 5 FFT 
kernels for LTE systems," NORCHIP, 2011 , vol., no., pp.1,4, 14-15 Nov. 2011 
[24] Prakash, S.; Rao, V.V., "A new radix-6 FFT algorithm," Acoustics, Speech and Signal 
Processing, IEEE Transactions on , vol.29, no.4, pp.939,941, Aug 1981 
[25] Suzuki, Y.; Toshio Sone; Kido, K., "A new FFT algorithm of radix 3,6, and 12," 
Acoustics, Speech and Signal Processing, IEEE Transactions on , vol.34, no.2, 
pp.380,383, Apr 1986 
[26] Dubois, E.; Venetsanopoulos, A., "A new algorithm for the radix-3 FFT," Acoustics, 
Speech and Signal Processing, IEEE Transactions on , vol.26, no.3, pp.222,225, Jun 
1978 
[27] S. Goedecker. 1997. Fast Radix 2, 3, 4, and 5 Kernels for Fast Fourier Transformations 
on Computers with Overlapping Multiply--Add Instructions. SIAM J. Sci. Comput. 18, 6 
(November 1997), 1605-1611. DOI=10.1137/S1064827595281940 
http://dx.doi.org/10.1137/S1064827595281940 
[28] Huazhong Shu; XuDong Bao; Toumoulin, C.; Limin Luo, "Radix-3 Algorithm for the Fast 
Computation of Forward and Inverse MDCT," Signal Processing Letters, IEEE , vol.14, 
no.2, pp.93,96, Feb. 2007 
[29] Guoan Bi; Yu, L.W., "DCT algorithms for composite sequence lengths," Signal 
Processing, IEEE Transactions on , vol.46, no.3, pp.554,562, Mar 1998 
[30] Yuk-Hee Chan; Wan-Chi Siu,, "Fast radix-3/6 algorithms for the realization of the 
discrete cosine transform," Circuits and Systems, 1992. ISCAS '92. Proceedings., 1992 
IEEE International Symposium on , vol.1, no., pp.153,156 vol.1, 10-13 May 1992
[31] Yiquan Wu; Zhaoda Zhu, "New radix-3 fast algorithm for the discrete cosine transform," 
Aerospace and Electronics Conference, 1993. NAECON 1993., Proceedings of the IEEE 
1993 National , vol., no., pp.86,89 vol.1, 24-28 May 1993 
[32] Huazhong Shu; XuDong Bao; Toumoulin, C.; Limin Luo, "Radix-3 Algorithm for the Fast 
Computation of Forward and Inverse MDCT," Signal Processing Letters, IEEE , vol.14, 
no.2, pp.93,96, Feb. 2007 
[33] Yuk-Hee Chan; Wan-Chi Siu,, "Mixed-radix discrete cosine transform," Signal 
Processing, IEEE Transactions on , vol.41, no.11, pp.3157,3161, Nov 1993 
[34] Yuk-Hee Chan; Wan-Chi Siu,, "Fast radix-3/6 algorithms for the realization of the 
discrete cosine transform," Circuits and Systems, 1992. ISCAS '92. Proceedings., 1992 
IEEE International Symposium on , vol.1, no., pp.153,156 vol.1, 10-13 May 1992 
[35] Jiasong Wu; Lu Wang; Senhadji, L.; Huazhong Shu, "Improved radix-3 decimation-in-frequency 
algorithm for the fast computation of forward and inverse MDCT," Audio 
Language and Image Processing (ICALIP), 2010 International Conference on , vol., no., 
pp.694,699, 23-25 Nov. 2010 
[36] Sanchez, V.; Garcia, P.; Peinado, AM.; Segura, J.C.; Rubio, AJ., "Diagonalizing 
properties of the discrete cosine transforms," Signal Processing, IEEE Transactions 
on , vol.43, no.11, pp.2631,2641, Nov 1995 
[37] Lun, Daniel Pak-Kong; Wan-Chi Siu,, "Fast radix-3/9 discrete Hartley transform," Signal 
Processing, IEEE Transactions on , vol.41, no.7, pp.2494,2499, Jul 1993 
[38] Huazhong Shu; Jiasong Wu; Chunfeng Yang; Senhadji, L., "Fast Radix-3 Algorithm for 
the Generalized Discrete Hartley Transform of Type II," Signal Processing Letters, IEEE , 
vol.19, no.6, pp.348,351, June 2012 
[39] Prabhu, K.M.M.; Nagesh, A., "New radix-3 and 6 decimation-in-frequency fast Hartley 
transform algorithms," Electrical and Computer Engineering, Canadian Journal of , 
vol.18, no.2, pp.65,69, April 1993 
[40] Sorensen, H.V.; Jones, D.L.; Burrus, C.S.; Heideman, M., "On computing the discrete 
Hartley transform," Acoustics, Speech and Signal Processing, IEEE Transactions on , 
vol.33, no.5, pp.1231,1238, Oct 1985
[41] Wu, J.S.; Shu, H.Z.; Senhadji, L.; Luo, L.M., "Radix-3-3 Algorithm for The 2-D Discrete 
Hartley Transform," Circuits and Systems II: Express Briefs, IEEE Transactions on , 
vol.55, no.6, pp.566,570, June 2008 
[42] Prabhu, K. M M, "An efficient radix-3 FHT algorithm," Digital Signal Processing 
Proceedings, 1997. DSP 97., 1997 13th International Conference on , vol.1, no., 
pp.349,351 vol.1, 2-4 Jul 1997 
[43] Zhao, Z.-J., "In-place radix-3 fast Hartley transform algorithm," Electronics Letters , 
vol.28, no.3, pp.319,321, 30 Jan. 1992 
[44] Anupindi, N.; Narayanan, S.B.; Prabhu, K.M.M., "New radix-3 FHT algorithm," 
Electronics Letters , vol.26, no.18, pp.1537,1538, 30 Aug. 1990 
[45] Yiquan Wu; Zhaoda Zhu, "A new radix-3 fast algorithm for computing the DST-II," 
Aerospace and Electronics Conference, 1995. NAECON 1995., Proceedings of the IEEE 
1995 National , vol.1, no., pp.324,327 vol.1, 22-26 May 1995
Links 
Jun Li's Golden Section Transform Home Page 
http://goldensectiontransform.org/ 
http://www.maths.surrey.ac.uk/hosted-sites/ 
R.Knott/Fibonacci/fibrab.html 
http://en.wikipedia.org/wiki/Fibonacci_word 
http://mathworld.wolfram.com/RabbitSequence.html 
The infinite Fibonacci word, https://oeis.org/A005614 
Lower Wythoff sequence, http://oeis.org/A000201 
Upper Wythoff sequence, http://oeis.org/A001950 
https://oeis.org/A072042
My Book
Thank you!

More Related Content

What's hot

Dkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_aDkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_a
Filomeno Faustino
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
aravindangc
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
Tarun Gehlot
 
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection ProblemTheories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
Seongcheol Baek
 
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
Eesti Pank
 
Tcu12 crc multi
Tcu12 crc multiTcu12 crc multi
Tcu12 crc multi
Sahiris Seg
 
maths basics
maths basicsmaths basics
maths basics
swaroop gannavarapu
 
2 d transformation
2 d transformation2 d transformation
2 d transformation
Ankit Garg
 
Solution manual for theory and applications of digital speech processing lawr...
Solution manual for theory and applications of digital speech processing lawr...Solution manual for theory and applications of digital speech processing lawr...
Solution manual for theory and applications of digital speech processing lawr...
zammok
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
Tarun Gehlot
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
aravindangc
 
Model reduction design for continuous systems with finite frequency specifications
Model reduction design for continuous systems with finite frequency specificationsModel reduction design for continuous systems with finite frequency specifications
Model reduction design for continuous systems with finite frequency specifications
IJECEIAES
 
Final Exam Review (Integration)
Final Exam Review (Integration)Final Exam Review (Integration)
Final Exam Review (Integration)
Matthew Leingang
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
Ratnadeepsinh Jadeja
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
Mohammad Tawfik
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
Tarun Gehlot
 
Lecture 12 (Image transformation)
Lecture 12 (Image transformation)Lecture 12 (Image transformation)
Lecture 12 (Image transformation)
VARUN KUMAR
 
Vector mechanics for engineers statics 7th chapter 5
Vector mechanics for engineers statics 7th chapter 5 Vector mechanics for engineers statics 7th chapter 5
Vector mechanics for engineers statics 7th chapter 5
Nahla Hazem
 
2.2. interactive computer graphics
2.2. interactive computer graphics2.2. interactive computer graphics
2.2. interactive computer graphics
Ratnadeepsinh Jadeja
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
Prianka Padmanaban
 

What's hot (20)

Dkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_aDkd 4 2-sheet_1_annex_a
Dkd 4 2-sheet_1_annex_a
 
Computer Graphics Unit 1
Computer Graphics Unit 1Computer Graphics Unit 1
Computer Graphics Unit 1
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection ProblemTheories and Engineering Technics of 2D-to-3D Back-Projection Problem
Theories and Engineering Technics of 2D-to-3D Back-Projection Problem
 
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
Boris Blagov. Financial Crises and Time-Varying Risk Premia in a Small Open E...
 
Tcu12 crc multi
Tcu12 crc multiTcu12 crc multi
Tcu12 crc multi
 
maths basics
maths basicsmaths basics
maths basics
 
2 d transformation
2 d transformation2 d transformation
2 d transformation
 
Solution manual for theory and applications of digital speech processing lawr...
Solution manual for theory and applications of digital speech processing lawr...Solution manual for theory and applications of digital speech processing lawr...
Solution manual for theory and applications of digital speech processing lawr...
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
Computer Graphics Unit 2
Computer Graphics Unit 2Computer Graphics Unit 2
Computer Graphics Unit 2
 
Model reduction design for continuous systems with finite frequency specifications
Model reduction design for continuous systems with finite frequency specificationsModel reduction design for continuous systems with finite frequency specifications
Model reduction design for continuous systems with finite frequency specifications
 
Final Exam Review (Integration)
Final Exam Review (Integration)Final Exam Review (Integration)
Final Exam Review (Integration)
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
 
Finite elements : basis functions
Finite elements : basis functionsFinite elements : basis functions
Finite elements : basis functions
 
Lecture 12 (Image transformation)
Lecture 12 (Image transformation)Lecture 12 (Image transformation)
Lecture 12 (Image transformation)
 
Vector mechanics for engineers statics 7th chapter 5
Vector mechanics for engineers statics 7th chapter 5 Vector mechanics for engineers statics 7th chapter 5
Vector mechanics for engineers statics 7th chapter 5
 
2.2. interactive computer graphics
2.2. interactive computer graphics2.2. interactive computer graphics
2.2. interactive computer graphics
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 

Similar to Image Compression Comparison Using Golden Section Transform, CDF 5/3 (Le Gall 5/3) and CDF 9/7 Wavelet Transform By Matlab

Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
Awais Chaudhary
 
Hideitsu Hino
Hideitsu HinoHideitsu Hino
Hideitsu Hino
Suurist
 
matlab.docx
matlab.docxmatlab.docx
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
Yong Heui Cho
 
Lecture8 Signal and Systems
Lecture8 Signal and SystemsLecture8 Signal and Systems
Lecture8 Signal and Systems
babak danyal
 
TM plane wave scattering from finite rectangular grooves in a conducting plan...
TM plane wave scattering from finite rectangular grooves in a conducting plan...TM plane wave scattering from finite rectangular grooves in a conducting plan...
TM plane wave scattering from finite rectangular grooves in a conducting plan...
Yong Heui Cho
 
Computational Tools and Techniques for Numerical Macro-Financial Modeling
Computational Tools and Techniques for Numerical Macro-Financial ModelingComputational Tools and Techniques for Numerical Macro-Financial Modeling
Computational Tools and Techniques for Numerical Macro-Financial Modeling
Victor Zhorin
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Amr E. Mohamed
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
Amr Rashed
 
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
Harrisson David Assis Santos
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
Vikram Halder
 
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
doboncho
 
Abstract
AbstractAbstract
Laplace_1.ppt
Laplace_1.pptLaplace_1.ppt
Laplace_1.ppt
cantatebrugyral
 
Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)
thanh nguyen
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Henrique Covatti
 
Prelude to halide_public
Prelude to halide_publicPrelude to halide_public
Prelude to halide_public
Fixstars Corporation
 
小波变换程序
小波变换程序小波变换程序
小波变换程序
byron zhao
 
小波变换程序
小波变换程序小波变换程序
小波变换程序
byron zhao
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
Peter Herbert
 

Similar to Image Compression Comparison Using Golden Section Transform, CDF 5/3 (Le Gall 5/3) and CDF 9/7 Wavelet Transform By Matlab (20)

Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Hideitsu Hino
Hideitsu HinoHideitsu Hino
Hideitsu Hino
 
matlab.docx
matlab.docxmatlab.docx
matlab.docx
 
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
Analysis of an E-plane waveguide T-junction with a quarter-wave transformer u...
 
Lecture8 Signal and Systems
Lecture8 Signal and SystemsLecture8 Signal and Systems
Lecture8 Signal and Systems
 
TM plane wave scattering from finite rectangular grooves in a conducting plan...
TM plane wave scattering from finite rectangular grooves in a conducting plan...TM plane wave scattering from finite rectangular grooves in a conducting plan...
TM plane wave scattering from finite rectangular grooves in a conducting plan...
 
Computational Tools and Techniques for Numerical Macro-Financial Modeling
Computational Tools and Techniques for Numerical Macro-Financial ModelingComputational Tools and Techniques for Numerical Macro-Financial Modeling
Computational Tools and Techniques for Numerical Macro-Financial Modeling
 
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
Modern Control - Lec 05 - Analysis and Design of Control Systems using Freque...
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
[Paul lorrain] solutions_manual_for_electromagneti(bookos.org)
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文対応点を用いないローリングシャッタ歪み補正と映像安定化論文
対応点を用いないローリングシャッタ歪み補正と映像安定化論文
 
Abstract
AbstractAbstract
Abstract
 
Laplace_1.ppt
Laplace_1.pptLaplace_1.ppt
Laplace_1.ppt
 
Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)Digital image processing using matlab: filters (detail)
Digital image processing using matlab: filters (detail)
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
 
Prelude to halide_public
Prelude to halide_publicPrelude to halide_public
Prelude to halide_public
 
小波变换程序
小波变换程序小波变换程序
小波变换程序
 
小波变换程序
小波变换程序小波变换程序
小波变换程序
 
Problem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element MethodProblem Solving by Computer Finite Element Method
Problem Solving by Computer Finite Element Method
 

Recently uploaded

System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Jeffrey Haguewood
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
saastr
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 

Recently uploaded (20)

System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 

Image Compression Comparison Using Golden Section Transform, CDF 5/3 (Le Gall 5/3) and CDF 9/7 Wavelet Transform By Matlab

  • 1. Image Compression Comparison UUssiinngg GGoollddeenn SSeeccttiioonn TTrraannssffoorrmm,, CCDDFF 55//33 ((LLee GGaallll 55//33)) aanndd CCDDFF 99//77 WWaavveelleett TTrraannssffoorrmm BByy MMaattllaabb Jun Li http://GoldenSectionTransform.org/
  • 2. Introduction In mathematics, Golden Section Transform is a new class of discrete orthogonal transform. Its theory involves golden ratio, Fibonacci number, Fourier analysis, wavelet theory, stochastic process, integer partition, matrix analysis, group theory, combinatorics on words, its applied fields include digital signal (image/audio/video) processing, denoising, watermarking, compression, coding and so on. see here.
  • 3. Simple Compression Scheme Source image is divided into 8 × 8 blocks of pixels Apply 2D transform (LGST, HGST, CDF 5/3, CDF 9/7) to each 8 × 8 block
  • 4. Set compression ratio, keep largest abs(elements) in each block, and set all the others to zero Apply inverse 2D transform to each 8 × 8 block to reconstruct the image Compute PSNR and compare the results.
  • 5. Transform matrix for 1D signal 4-level 8×8 LGST matrix for 1D signal
  • 6. 3-level 8×8 CDF 5/3 matrix for 1D singal
  • 7. 3-level 8×8 CDF 9/7 matrix for 1D singal
  • 8. 2-level 8×8 HGST matrix for 1D signal
  • 9. Matlab Code gstdemo.m % main file lgst2d.m % 4-level 2d low golden section transform ilgst2d.m % 4-level inverse 2d low golden section transform lword.m % Type-L golden section decomposion of fibonacci number legall53td.m % 3-level 2d CDF 5/3 transform lifting scheme ilegall53td.m % 3-level inverse 2d CDF 5/3 transform hgst2d.m % 2-level 2d high golden section transform ihgst2d.m % 2-level inverse 2d high golden section transform hword.m % Type-H golden section decomposion of fibonacci number cdf97td.m % 3-level 2d CDF 9/7 transform lifting scheme icdf97td.m % 3-level inverse 2d CDF 9/7 transform keep.m % keep largest abs(values) in matrix psnr.m % compute MSE and PSNR all the codes can be downloaded here: http://goldensectiontransform.org/
  • 10. legall53td.m function H = legall53td(X) % Author: Jun Li, more info@ http://goldensectiontransform.org/ % % function H = legall53td(X,nlevel) % 3-level 2d LeGall 5/3 wavelet transform of 8*8 image matrix nlevel = 3; % 3-level transform for each 8*8 image block [xx,yy] = size(X); H=X; for i=1:nlevel for j=1:xx [ss,dd] = legall531d(H(j,1:yy)); % row transform H(j,1:yy) = [ss,dd]; end for k=1:yy [ss,dd] = legall531d(H(1:xx,k)'); % column transform H(1:xx,k) = [ss,dd]'; end xx = xx/2; yy = yy/2; end %% 1d LeGall 5/3 lifting scheme % symw_ext->...12321... function [ss,dd] = legall531d(S) N = length(S); ga = -1/2; gb = 1/4; gc = sqrt(2); s0 = S(1:2:N-1); % S(1),S(3),S(5),S(7)... d0 = S(2:2:N); % S(2),S(4),S(6),S(8)... d1 = d0 + ga*(s0 + [s0(2:N/2) s0(N/2)]); s1 = s0 + gb*(d1 + [d1(1) d1(1:N/2-1)]); ss = gc*s1; dd = d1/gc;
  • 11. cdf97td.m function H = cdf97td(X) % Author: Jun Li, more info@ http://goldensectiontransform.org/ %% function H = cdf97td(X,nlevel) % 3-level 2d CDF 9/7 wavelet transform of 8*8 image matrix nlevel = 3; % 3-level transform for each 8*8 image block [xx,yy] = size(X); H=X; for i=1:nlevel for j=1:xx [ss,dd] = cdf971d(H(j,1:yy)); % row transform H(j,1:yy) = [ss,dd]; end for k=1:yy [ss,dd] = cdf971d(H(1:xx,k)'); % column transform H(1:xx,k) = [ss,dd]'; end xx = xx/2; yy = yy/2; end %% 1d CDF 9/7 wavelet lifting scheme % symw_ext->...12321... function [ss,dd] = cdf971d(S) N = length(S); fa = -1.586134342; fb = -0.05298011854; fc = 0.8829110762; fd = 0.4435068522; fz = 1.149604398; s0 = S(1:2:N-1); % S(1),S(3),S(5),S(7)... d0 = S(2:2:N); % S(2),S(4),S(6),S(8)... d1 = d0 + fa*(s0 + [s0(2:N/2) s0(N/2)]); s1 = s0 + fb*(d1 + [d1(1) d1(1:N/2-1)]); d2 = d1 + fc*(s1 + [s1(2:N/2) s1(N/2)]); s2 = s1 + fd*(d2 + [d2(1) d2(1:N/2-1)]); ss = fz*s2; dd = d2/fz;
  • 12. lgst2d.m function H = lgst2d(X) % Author: Jun Li, more info@ http://goldensectiontransform.org/ % function H = lgst2d(X,nlevel) % 4-level 2d low golden section transform of 8*8 image matrix nlevel = 4; % 4-level transform for each 8*8 image block global lj; % only used by function lgst1d(S) below. global FBL; % only used by function lgst1d(S) below. [xx,yy] = size(X); ind = floor(log(xx*sqrt(5)+1/2)/log((sqrt(5)+1)/2)); % determine index FBL = filter(1,[1 -1 -1],[1 zeros(1,ind-1)]); % FBL = Fibonacci sequence -> [1 1 2 3 5 8...]; H=X; for lj=1:nlevel for j=1:xx [ss,dd] = lgst1d(H(j,1:yy)); % row transform H(j,1:yy) = [ss,dd]; end for k=1:yy [ss,dd] = lgst1d(H(1:xx,k)'); % column transform H(1:xx,k) = [ss,dd]'; end xx = FBL(end-lj); % round((sqrt(5)-1)/2*xx); 8*8 block: xx=8->5->3->2 yy = FBL(end-lj); % round((sqrt(5)-1)/2*yy); 8*8 block: yy=8->5->3->2 end %% 1d low golden section transform function [ss,dd] = lgst1d(S) global lj; global FBL; index = 0; h = 1; lform = lword(length(S)); for i=1:length(lform) index = index + lform(i); if lform(i) == 1 ss(i) = S(index); else % lform(i) == 2 ss(i) = (sqrt(FBL(lj))*S(index-1)+sqrt(FBL(lj+1))*S(index))/sqrt(FBL(lj+2)); dd(h) = (sqrt(FBL(lj+1))*S(index-1)-sqrt(FBL(lj))*S(index))/sqrt(FBL(lj+2)); h = h+1; end end
  • 13. lword.m function lform = lword(n) % Author: Jun Li, more info@ http://goldensectiontransform.org/ % Type-L golden section decomposion of fibonacci number n, % e.g. lword(8) = [1 2 2 1 2]; if n == 1 lform = [1]; elseif n == 2 lform = [2]; else next = round((sqrt(5)-1)/2*n); lform = [lword(n-next),lword(next)]; end
  • 14. hgst2d.m function H = hgst2d(X) % Author: Jun Li, more info@ http://goldensectiontransform.org/ % function H = hgst2d(X,nlevel) % 2-level 2d high golden section transform of 8*8 image matrix nlevel = 2; % 2-level transform for each 8*8 image block global hj; % only used by function hgst1d(S) below. global FBH; % only used by function hgst1d(S) below. [xx,yy] = size(X); ind = floor(log(xx*sqrt(5)+1/2)/log((sqrt(5)+1)/2)); % determine index FBH = filter(1,[1 -1 -1],[1 zeros(1,ind-1)]); % FBH = Fibonacci sequence -> [1 1 2 3 5 8...]; H=X; for hj=1:nlevel for j=1:xx [ss,dd] = hgst1d(H(j,1:yy)); % row transform H(j,1:yy) = [ss,dd]; end for k=1:yy [ss,dd] = hgst1d(H(1:xx,k)'); % column transform H(1:xx,k) = [ss,dd]'; end xx = FBH(end-2*hj); % round((3-sqrt(5))/2*xx); 8*8 block: xx=8->3 yy = FBH(end-2*hj); % round((3-sqrt(5))/2*yy); 8*8 block: yy=8->3 end %% 1d high golden section transform function [ss,dd] = hgst1d(S) global hj; global FBH; index = 0; g = 1; h = 1; hform = hword(length(S)); for i=1:length(hform) index = index + hform(i); if hform(i) == 2 ss(i) = (sqrt(FBH(2*hj-1))*S(index-1)+sqrt(FBH(2*hj))*S(index))/sqrt(FBH(2*hj+1)); dd(2*i-g) = (sqrt(FBH(2*hj))*S(index-1)-sqrt(FBH(2*hj-1))*S(index))/sqrt(FBH(2*hj+1)); g = g+1; else % hform(i) == 3 ss(i) = (sqrt(FBH(2*hj))*S(index-2)+sqrt(FBH(2*hj-1))*S(index-1)+sqrt(FBH(2*hj))*S(index))/sqrt(FBH(2*hj+2)); dd(i+h-1) = (sqrt(FBH(2*hj-1))*S(index-2)-2*sqrt(FBH(2*hj))*S(index-1)+sqrt(FBH(2*hj-1))*S(index))/sqrt(2*FBH(2*hj+2)); dd(i+h) = (S(index-2)-S(index))/sqrt(2); h = h+1; end end
  • 15. hword.m function hform = hword(n) % Author: Jun Li, more info@ http://goldensectiontransform.org/ % Type-H golden section decomposion of fibonacci number n, % e.g. hword(8) = [3 2 3]; if n == 2 hform = [2]; elseif n == 3 hform = [3]; else next = round((sqrt(5)-1)/2*n); hform = [hword(n-next),hword(next)]; end
  • 16. keep.m function X = keep(X) % keep the largest abs(elements) of X, % global RATIO set in gstdemo.m is in [0,1]. global RATIO; N = floor(prod(size(X))*RATIO); [MM,i] = sort(abs(X(:))); X(i(1:end-N)) = 0;
  • 17. psnr.m function [MSE,PSNR] = psnr(X,Y) % Compute MSE and PSNR. MSE = sum((X(:)-Y(:)).^2)/prod(size(X)); if MSE == 0 PSNR = Inf; else PSNR = 10*log10(255^2/MSE); end
  • 19.
  • 21.
  • 22. References [1] Jun. Li (2007). "Golden Section Method Used in Digital Image Multi-resolution Analysis". Application Research of Computers (in zh-cn) 24 (Suppl.): 1880–1882. ISSN 1001- 3695;CN 51-1196/TP [2] I. Daubechies and W. Sweldens, "Factoring wavelet transforms into lifting schemes," J. Fourier Anal. Appl., vol. 4, no. 3, pp. 247-269, 1998. [3] Ingrid Daubechies. 1992. Ten Lectures on Wavelets. Soc. for Industrial and Applied Math., Philadelphia, PA, USA. [4] Sun, Y.K.(2005). Wavelet Analysis and Its Applications. China Machine Press. ISBN 7111158768 [5] Jin, J.F.(2004). Visual C++ Wavelet Transform Technology and Engineering Practice. Posts & Telecommunications Press. ISBN 7115119597 [6] He, B.;Ma, T.Y.(2002). Visual C++ Digital Image Processing. Posts & Telecommunications Press. ISBN 7115109559 [7] V. Britanak, P. Yip, K. R. Rao, 2007 Discrete Cosine and Sine Transform, General properties, Fast Algorithm and Integer Approximations" Academic Press [8] K. R. Rao and P. Yip, Discrete Cosine Transform: Algorithms, Advantages, Applications, Academic Press, Boston, 1990. [9] J. Nilsson, On the entropy of random Fibonacci words, arXiv:1001.3513. [10] J. Nilsson, On the entropy of a family of random substitutions, Monatsh. Math. 168 (2012) 563–577. arXiv:1103.4777.
  • 23. [11] J. Nilsson, On the entropy of a two step random Fibonacci substitution, Entropy 15 (2013) 3312—3324; arXiv:1303.2526. [12] Wai-Fong Chuan, Fang-Yi Liao, Hui-Ling Ho, and Fei Yu. 2012. Fibonacci word patterns in two-way infinite Fibonacci words. Theor. Comput. Sci. 437 (June 2012), 69-81. DOI=10.1016/j.tcs.2012.02.020 http://dx.doi.org/10.1016/j.tcs.2012.02.020 [13] Julien Cassaigne (2008). On extremal properties of the Fibonacci word. RAIRO - Theoretical Informatics and Applications, 42, pp 701-715. doi:10.1051/ita:2008003. [14] Wojciech Rytter, The structure of subword graphs and suffix trees of Fibonacci words, Theoretical Computer Science, Volume 363, Issue 2, 28 October 2006, Pages 211-223, ISSN 0304-3975, http://dx.doi.org/10.1016/j.tcs.2006.07.025. [15] Alex Vinokur, Fibonacci connection between Huffman codes and Wythoff array, arXiv:cs/0410013v2 [16] Vinokur A.B., Huffman trees and Fibonacci numbers. Kibernetika Issue 6 (1986) 9-12 (in Russian), English translation in Cybernetics 22 Issue 6 (1986) 692–696; http://springerlink.metapress.com/link.asp?ID=W32X70520K8JJ617 [17] L. Colussi, Fastest Pattern Matching in Strings, Journal of Algorithms, Volume 16, Issue 2, March 1994, Pages 163-189, ISSN 0196-6774, http://dx.doi.org/10.1006/jagm.1994.1008. [18] Ron Lifshitz, The square Fibonacci tiling, Journal of Alloys and Compounds, Volume 342, Issues 1–2, 14 August 2002, Pages 186-190, ISSN 0925-8388, http://dx.doi.org/10.1016/S0925-8388(02)00169-X. [19] C. Godr`eche, J. M. Luck, Quasiperiodicity and randomness in tilings of the plane, Journal of Statistical Physics, Volume 55, Issue 1–2, pp. 1–28. [20] S. Even-Dar Mandel and R. Lifshitz. Electronic energy spectra and wave functions on the square Fibonacci tiling. Philosophical Magazine, 86:759-764, 2006.
  • 24. [21] S. Goedecker. 1997. Fast Radix 2, 3, 4, and 5 Kernels for Fast Fourier Transformations on Computers with Overlapping Multiply--Add Instructions. SIAM J. Sci. Comput. 18, 6 (November 1997), 1605-1611. DOI=10.1137/S1064827595281940 http://dx.doi.org/10.1137/S1064827595281940 [22] Bashar, S.K., "An efficient approach to the computation of fast fourier transform(FFT) by Radix-3 algorithm," Informatics, Electronics & Vision (ICIEV), 2013 International Conference on , vol., no., pp.1,5, 17-18 May 2013 [23] Lofgren, J.; Nilsson, P., "On hardware implementation of radix 3 and radix 5 FFT kernels for LTE systems," NORCHIP, 2011 , vol., no., pp.1,4, 14-15 Nov. 2011 [24] Prakash, S.; Rao, V.V., "A new radix-6 FFT algorithm," Acoustics, Speech and Signal Processing, IEEE Transactions on , vol.29, no.4, pp.939,941, Aug 1981 [25] Suzuki, Y.; Toshio Sone; Kido, K., "A new FFT algorithm of radix 3,6, and 12," Acoustics, Speech and Signal Processing, IEEE Transactions on , vol.34, no.2, pp.380,383, Apr 1986 [26] Dubois, E.; Venetsanopoulos, A., "A new algorithm for the radix-3 FFT," Acoustics, Speech and Signal Processing, IEEE Transactions on , vol.26, no.3, pp.222,225, Jun 1978 [27] S. Goedecker. 1997. Fast Radix 2, 3, 4, and 5 Kernels for Fast Fourier Transformations on Computers with Overlapping Multiply--Add Instructions. SIAM J. Sci. Comput. 18, 6 (November 1997), 1605-1611. DOI=10.1137/S1064827595281940 http://dx.doi.org/10.1137/S1064827595281940 [28] Huazhong Shu; XuDong Bao; Toumoulin, C.; Limin Luo, "Radix-3 Algorithm for the Fast Computation of Forward and Inverse MDCT," Signal Processing Letters, IEEE , vol.14, no.2, pp.93,96, Feb. 2007 [29] Guoan Bi; Yu, L.W., "DCT algorithms for composite sequence lengths," Signal Processing, IEEE Transactions on , vol.46, no.3, pp.554,562, Mar 1998 [30] Yuk-Hee Chan; Wan-Chi Siu,, "Fast radix-3/6 algorithms for the realization of the discrete cosine transform," Circuits and Systems, 1992. ISCAS '92. Proceedings., 1992 IEEE International Symposium on , vol.1, no., pp.153,156 vol.1, 10-13 May 1992
  • 25. [31] Yiquan Wu; Zhaoda Zhu, "New radix-3 fast algorithm for the discrete cosine transform," Aerospace and Electronics Conference, 1993. NAECON 1993., Proceedings of the IEEE 1993 National , vol., no., pp.86,89 vol.1, 24-28 May 1993 [32] Huazhong Shu; XuDong Bao; Toumoulin, C.; Limin Luo, "Radix-3 Algorithm for the Fast Computation of Forward and Inverse MDCT," Signal Processing Letters, IEEE , vol.14, no.2, pp.93,96, Feb. 2007 [33] Yuk-Hee Chan; Wan-Chi Siu,, "Mixed-radix discrete cosine transform," Signal Processing, IEEE Transactions on , vol.41, no.11, pp.3157,3161, Nov 1993 [34] Yuk-Hee Chan; Wan-Chi Siu,, "Fast radix-3/6 algorithms for the realization of the discrete cosine transform," Circuits and Systems, 1992. ISCAS '92. Proceedings., 1992 IEEE International Symposium on , vol.1, no., pp.153,156 vol.1, 10-13 May 1992 [35] Jiasong Wu; Lu Wang; Senhadji, L.; Huazhong Shu, "Improved radix-3 decimation-in-frequency algorithm for the fast computation of forward and inverse MDCT," Audio Language and Image Processing (ICALIP), 2010 International Conference on , vol., no., pp.694,699, 23-25 Nov. 2010 [36] Sanchez, V.; Garcia, P.; Peinado, AM.; Segura, J.C.; Rubio, AJ., "Diagonalizing properties of the discrete cosine transforms," Signal Processing, IEEE Transactions on , vol.43, no.11, pp.2631,2641, Nov 1995 [37] Lun, Daniel Pak-Kong; Wan-Chi Siu,, "Fast radix-3/9 discrete Hartley transform," Signal Processing, IEEE Transactions on , vol.41, no.7, pp.2494,2499, Jul 1993 [38] Huazhong Shu; Jiasong Wu; Chunfeng Yang; Senhadji, L., "Fast Radix-3 Algorithm for the Generalized Discrete Hartley Transform of Type II," Signal Processing Letters, IEEE , vol.19, no.6, pp.348,351, June 2012 [39] Prabhu, K.M.M.; Nagesh, A., "New radix-3 and 6 decimation-in-frequency fast Hartley transform algorithms," Electrical and Computer Engineering, Canadian Journal of , vol.18, no.2, pp.65,69, April 1993 [40] Sorensen, H.V.; Jones, D.L.; Burrus, C.S.; Heideman, M., "On computing the discrete Hartley transform," Acoustics, Speech and Signal Processing, IEEE Transactions on , vol.33, no.5, pp.1231,1238, Oct 1985
  • 26. [41] Wu, J.S.; Shu, H.Z.; Senhadji, L.; Luo, L.M., "Radix-3-3 Algorithm for The 2-D Discrete Hartley Transform," Circuits and Systems II: Express Briefs, IEEE Transactions on , vol.55, no.6, pp.566,570, June 2008 [42] Prabhu, K. M M, "An efficient radix-3 FHT algorithm," Digital Signal Processing Proceedings, 1997. DSP 97., 1997 13th International Conference on , vol.1, no., pp.349,351 vol.1, 2-4 Jul 1997 [43] Zhao, Z.-J., "In-place radix-3 fast Hartley transform algorithm," Electronics Letters , vol.28, no.3, pp.319,321, 30 Jan. 1992 [44] Anupindi, N.; Narayanan, S.B.; Prabhu, K.M.M., "New radix-3 FHT algorithm," Electronics Letters , vol.26, no.18, pp.1537,1538, 30 Aug. 1990 [45] Yiquan Wu; Zhaoda Zhu, "A new radix-3 fast algorithm for computing the DST-II," Aerospace and Electronics Conference, 1995. NAECON 1995., Proceedings of the IEEE 1995 National , vol.1, no., pp.324,327 vol.1, 22-26 May 1995
  • 27. Links Jun Li's Golden Section Transform Home Page http://goldensectiontransform.org/ http://www.maths.surrey.ac.uk/hosted-sites/ R.Knott/Fibonacci/fibrab.html http://en.wikipedia.org/wiki/Fibonacci_word http://mathworld.wolfram.com/RabbitSequence.html The infinite Fibonacci word, https://oeis.org/A005614 Lower Wythoff sequence, http://oeis.org/A000201 Upper Wythoff sequence, http://oeis.org/A001950 https://oeis.org/A072042