Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: Yumnam Kirani Singh <kirani.singh@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image filters,Edge detectors
Date: Wed, 09 Jan 2008 01:47:40 EST
Organization: The Math Forum
Lines: 8
Message-ID: <30971887.1199861291430.JavaMail.jakarta@nitrogen.mathforum.org>
References: <30435824.1199857189457.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1199861291 11074 144.118.30.135 (9 Jan 2008 06:48:11 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Wed, 9 Jan 2008 06:48:11 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:444989


Sorry, I have made a mistake in the explanation of filter2 and conv2. The two are equivalent under the following cases.
>>xf=filter2(fliplr(mask),x); % using as conv2
>>xc=conv2(x,mask, 'same');
then xc and xf are the same.
In the other way,
>>xc=conv2(x,fliplr(mask), 'same'); % using as filter2
>>xf=filter2(mask,x);
here also, xc and xf will give the same result.