A list,
In 1974, J.Morlet, a French engineer, first proposed the concept of wavelet transform. In 1986, y.Meyer, a famous mathematician, accidentally constructed a real wavelet basis and cooperated with S.Mallat to establish the multi-scale analysis of constructing wavelet basis, wavelet analysis began to flourish. The application of wavelet analysis is very extensive. In mathematics, it has been used in numerical analysis, construction of rapid numerical methods, curve and surface construction, differential equation solution, cybernetics and so on. In signal analysis of filtering, noise, compression, transmission, etc. In the aspect of image processing, image compression, classification, recognition and diagnosis, noise removal, etc. This chapter will focus on the application of wavelet in image analysis.
1 principle of wavelet transform
Wavelet analysis is a difficult branch, users can use wavelet transform, image compression, vibration signal decomposition and reconstruction, so it is widely used in practical engineering. Wavelet analysis Compared with Fourier transform, wavelet transform is the local transformation of space domain and frequency domain, so it can effectively extract information from signals. Wavelet transform achieves multi-scale decomposition and reconstruction of signals through basic operations such as stretching and shifting, thus solving many problems caused by Fourier transform to a large extent.
Wavelet analysis is a new branch of mathematics, which is the perfect crystallization of functional analysis, Fourier analysis and numerical analysis. Wavelet analysis is also a new technique of “time-scale” analysis and multi-resolution analysis. It is widely used in signal analysis, speech synthesis, image compression and recognition, atmospheric and ocean wave analysis and so on.
(1) Wavelet analysis is used for signal and image compression. Wavelet compression is characterized by high compression ratio and fast compression speed. It can keep the characteristics of signal and image unchanged after compression, and can resist interference in transmission. There are many compression methods based on wavelet analysis, including wavelet compression, wavelet packet compression, wavelet transform vector compression and so on.
(2) Wavelet can also be used for signal filtering and denoising, signal time-frequency analysis, signal noise separation and weak signal extraction, fractal index, signal recognition and diagnosis and multi-scale edge detection, etc.
(3) The application of wavelet analysis in engineering technology, including computer vision, curve design, turbulence, remote universe research and biomedicine.
Multiscale analysis
3 image decomposition and quantization
4 image compression coding
5. Image coding evaluation
Ii. Source code
x1=imread('lena.bmp'); % reads the image as unsigned unit8(), which must be converted to the double() type supported by the matrix operation before performing the matrix operation. figure(1); Subplot (2, 2, 1), imshow (x1); The title (' artwork '); % add noise x2=imnoise(x1,'gaussian',0.01); x1=double(x1); Subplot (2,2,2); imshow(x2); Title (' after noise '); x3=double(x2); % after add noise signal to noise ratio SNR = 10 * log (sum (x1. ^ 2)/(sum ((x3 - x1). ^ 2)))/h0, h1 = wave1 (x3); % first-order decomposition [H00, H01]= Wave1 (H0 '); [h10,h11]=wave1(h1'); % % soft threshold denoising [t]=Throld(H11); % [Sh00]=Soft(h00,t); [Sh01]=Soft(h01,t); [Sh10]=Soft(h10,t); [Sh11]=Soft(h11,t); [S1]= Revers1 (h00,Sh01); [S2]=revers1(Sh10,Sh11); [S3]=revers1(S1',S2'); After % soft threshold denoising SNR SNRS = 10 * log (sum (x1. ^ 2)/(sum ((S3 - x1). ^ 2))) y2 = uint8 (S3); Subplot (2, 2, 3), imshow (y2); Title (' soft threshold denoising '); % [HSh00]=HardSoft(H00,t); [HSh01]=HardSoft(h01,t); [HSh10]=HardSoft(h10,t); [HSh11]=HardSoft(h11,t); % Revers1 (H00,HSh01); [HS2]=revers1(HSh10,HSh11); [HS3]=revers1(HS1',HS2'); After % of soft and hard threshold denoising SNR SNRHS = 10 * log (sum (x1. ^ 2)/(sum ((HS3 - x1). ^ 2))) y3 = uint8 (HS3); Subplot (2, 2, 4-trichlorobenzene), imshow (y3); Title (' Semi-soft and semi-hard threshold denoising '); % % first order wavelet decomposition image T1=[H00 ', H01 '; H10 ',h11']; y1=uint8(T1); figure(2); Subplot (2, 2, 1); imshow(y1); Title (' decompose once '); % % Hard threshold denoise % [Hh00]=Hard(h00,t); [Hh01]=Hard(h01,t); [Hh10]=Hard(h10,t); [Hh11]=Hard(h11,t); [H1]= Revers1 (H00,Hh01); [H2]=revers1(Hh10,Hh11); [H3]=revers1(H1',H2'); % after a hard threshold denoising SNR SNRH1 = 10 * log (sum (x1. ^ 2)/(sum ((H3 - x1). ^ 2))) y4 = uint8 (H3); Subplot (2,2,2); imshow(y4); Title (' Once hard threshold denoising '); % quadratic hard threshold denoising % quadratic decomposition [H20, H21]= Wave1 (H00); [h200,h201]=wave1(h20'); [h210,h211]=wave1(h21'); % % Quadratic wavelet decomposition image T2=[H200 ', H201 '; H210 ', H211 ']; T3=[T2',h01';h10',h11']; y5=uint8(T3); Subplot (2, 2, 3); imshow(y5); Title (' quadratic decomposition '); [t1]=Throld(h211); % [H200]=Hard(h200,t1); [H201]=Hard(h201,t1); [H210]=Hard(h210,t1); [H211]=Hard(h211,t1);Copy the code
3. Operation results
Fourth, note
Complete code added QQ1575304183