当前在线人数14313
首页 - 分类讨论区 - 学术学科 - 电子工程版 -文摘区 - 阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: 一个初级的matlab Filter 问题
[版面: 电子工程] [作者:suyi] , 2002年04月03日17:14:39
suyi
进入未名形象秀
我的博客
[上篇] [下篇]

发信人: suyi (Smiling), 信区: EE
标  题: Re: 一个初级的matlab Filter 问题
发信站: The unknown SPACE (Wed Apr  3 17:22:49 2002), 转信

Based on my understanding of your original question.
It seems what you want to do is like this.
Say the letter image is A.jpg, and the other image is imagename.jpg
and you have the msf.m, optcorr.m and magsqu.m function from
the website you mentioned in the original post. The code to produce
the respons profile like in the website is something like this:

%%%%%%%%%%%%%%%%%%%%%%%%%
A=imread('A.jpg');
F=msf(A);                           %generate the filter
imagename=imread('imagename.jpg'); 
filtered=optcorr(imagename, F);     %perform the filtering
mag=magsqu(filtered);               %get magnitude response
mesh(mag);                          %plot the profile
%%%%%%%%%%%%%%%%%%%%%%%%%
You will get a very high response in the center, because there the
template matches the best with the image as in the example on the website.

--
※ 来源:.The unknown SPACE bbs.mit.edu.[FROM: 129.176.201.22]

[上篇] [下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996