求小波处理的源代码

yangxingkuan 2006-12-16 03:41:22
最近在学习不变小波,用它来做水印,大哥们有什么源代码,什么资料,介绍一下,看数学原理感觉是是懂非懂的,想看看源码
...全文
283 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
LiChenYue 2006-12-23
  • 打赏
  • 举报
回复
是不是什么离散序列Z变换拉?
yangxingkuan 2006-12-21
  • 打赏
  • 举报
回复
谢谢各位,
这几天看小波,头都大了
  • 打赏
  • 举报
回复
学习,帮顶
ght21 2006-12-19
  • 打赏
  • 举报
回复
如果直接看代码的话可能你什么都看不懂,还是先了解一下算法.
Elysium 2006-12-19
  • 打赏
  • 举报
回复
数学+算法
bjqwhite123 2006-12-18
  • 打赏
  • 举报
回复
建议先看一下相关的小波变换的书籍,要计算机方面的,这样里面既有数学方面的解释还有算法方面的解释,然后再参考算法,否则有可能得到代码了也是徒劳一场啊。
karlzheng 2006-12-16
  • 打赏
  • 举报
回复
我觉得首先是要弄懂卷积:(现在一般的源代码都是用LIFT SCHEME,其实也就是卷积。下面是我老板要求我们做的COMPULSARY TASK的一维卷积MATLAB程序。MATLAB程序跟C看起来是一样易懂的

function y=MyConv1D(x,h)
%Implement two one dimensional arrays liner convolution
%x is the Input signal,h is the respond signal and y is the result of
%liner convolution
m=length(x);
n=length(h);


%Make the longer array to be Input signal,for save calculate time
if(m<n) % if the length of x is smaller than h,exchange them
temp1=x;
x=h;
h=temp1;
temp1=m;
m=n;
n=temp1;
end
% CONV(A,B) is the same as CONV(B,A), but we can make it go
% substantially faster if we swap arguments to make the first
% argument to filter the shorter of the two.

%reverse h for preparing circulate convolution calculation
if rem(n,2) == 0 ;
for i=1:(n/2); %if the length of h is even
temp=h(i);
h(i)=h(n-i+1);
h(n-i+1)=temp;
end ;
else ;
for i=1:(n/2)+1; %if the length of h is odd
temp=h(i);
h(i)=h(n-i+1);
h(n-i+1)=temp;
end
end

%define the length of ouput result y
n_yLength=m+n-1;
%compensate zeros to input signal x for calculating
x=[zeros(1,n),x,zeros(1,n-1)];
y=zeros(1,n_yLength);
for k=1:n_yLength
s=0;
for i=1:n;
s=s+x(k+i)*h(i); %Calculate y
end
y(k)=s;
end



宙斯之神 2006-12-16
  • 打赏
  • 举报
回复
http://www.assuredigit.com/forum/display_forum_topics.asp?ForumID=8&PagePosition=1&ThreadPage=1
vc方面的数字图象处理方面的书应该有些帮助把

19,468

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧