资源简介
second_wavelet第二代提升法实现的小波变换程序
代码片段和文件信息
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 此程序用提升法实现第二代小波变换
%% 我用的是非整数阶小波变换
%% 采用时域实现步骤先列后行
%% 正变换:分裂,预测,更新;
%% 反变换:更新,预测,合并
%% 只做一层(可以多层,而且每层的预测和更新方程不同)
clear;clc;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% 1.调原始图像矩阵
load wbarb; % 下载图像
f=X; % 原始图像
% f=[0 0 0 0 0 0 0 0 ;...
% 0 0 0 1 1 0 0 0 ;...
% 0 0 2 4 4 2 0 0 ;...
% 0 1 4 8 8 4 1 0 ;...
% 0 1 4 8 8 4 1 0 ;...
% 0 0 2 4 4 2 0 0 ;...
% 0 0 0 1 1 0 0 0 ;...
% 0 0 0 0 0 0 0 0 ;]; % 原始图像矩阵
N=length(f); % 图像维数
T=N/2; % 子图像维数
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%正变换%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% 1.列变换
% A.分裂(奇偶分开)
f1=f([1:2:N-1]:); % 奇数
f2=f([2:2:N]:); % 偶数
% f1(:T+1)=f1(:1); % 补列
% f2(T+1:)=f2(1:); % 补行
% B.预测
for i_hc=1:T;
high_frequency_column(i_hc:)=f1(i_hc:)-f2(i_hc:);
end;
% high_frequency_column(T+1:)=high_frequency_column(1:); % 补行
% C.更新
for i_lc=1:T;
low_frequency_column(i_lc:)=f2(i_lc:)+1/2*high_frequency_column(i_lc:);
end;
% D.合并
f_column([1:1:T]:)=low_frequency_column([1:T]:);
f_column([T+1:1:N]:)=high_frequency_column([1:T]:);
figure(1)
colormap(map);
image(f);
figure(2)
colormap(map);
image(f_column);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% 2.行变换
% A.分裂(奇偶分开)
f1=f_column(:[1:2:N-1]); % 奇数
f2=f_column(:[2:2:N]); % 偶数
% f2(:T+1)=f2(:1); % 补行
% B.预测
for i_hr=1:T;
high_frequency_row(:i_hr)=f1(:i_hr)-f2(:i_hr);
end;
% high_frequency_row(:T+1)=h
- 上一篇:图像分割matlab程序
- 下一篇:guangfu.mdl
相关资源
- WAVELET零水印算法
- matlab写的子波提取 wavelete
- wavelet.m
- MATLAB小波降噪程序
- Wavelet power load forecasting 基于小波神经
- 改进型的小波包与PNN的联合故障诊断
- Wavelet_OMP
- Wavelet_denoising 小波变换的MATLAB源程序
-
thresholddenoisingba
sedonwavelet 小波阈值 - image-fusion-and-detection-on-curvelet-wavelet
- waveletdenoising 小波变换应用
- wavelet 小波变换用于脑电信号处理
- wavelet-matlab 基于小波变换的图像融合
- CS-OMP-wavelet-reconstruction
- Stationary-wavelet-transform
- EEG_WAVELET 用小波方法把脑电信号进行
- Inpainting--on-Wavelet- 图像修复是图像处
- Wavelet-Tools 美国Rice大学提供的matlab 小
- Wavelet-network-timeseries 使用小波神经网
- Wavelet_IRLS 压缩感知CS——采用小波变
- Wavelet_EntropyinformationLZC 脑电处理中
- advanced-harmonic-wavelet-packet 自己编的改
- wavelet 用于求取小波包变换后小波系数
- Wavelet-moment-to-compile
- wavelet-threshold
- Wavelet-transform 本程序利用小波变换的
- image-denoising-using-wavelet 该文件夹包括
- synsq_toolbox_v1 同步压缩小波变换(sy
- fusion_and_evaluate
- Wavelet_ROMP 压缩感知CS——采用小波变
评论
共有 条评论