Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!f47g2000hsd.googlegroups.com!not-for-mail
From: behrada <behrada@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Image filters,Edge detectors
Date: Tue, 8 Jan 2008 16:04:36 -0800 (PST)
Organization: http://groups.google.com
Lines: 39
Message-ID: <92c92442-41d6-4901-a21c-6b0eb85dd0cd@f47g2000hsd.googlegroups.com>
References: <fm03vr$rjd$1@fred.mathworks.com> <fm047a$af4$1@fred.mathworks.com> 
NNTP-Posting-Host: 128.54.48.14
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1199837078 15852 127.0.0.1 (9 Jan 2008 00:04:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 9 Jan 2008 00:04:38 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f47g2000hsd.googlegroups.com; posting-host=128.54.48.14; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.11) 
Xref: news.mathworks.com comp.soft-sys.matlab:444969


The two are different in terms of method. Edge calculates the gradient
image and then applies a threshold to find where gradient is large--
the areas where intensity abruptly changes (edges). This is done in
spacial domain. Filt2 or conv2 convolves your image with a filter,
which is done in frequency domain. With fspecial  you are defining the
filter, i.e. prewitt for edge sensitivity. Although the results may be
similar, the methods are different. The latter method is generally
more independent from intensity and dynamic range. Convolution is also
probably computationally less intensive.



On Jan 8, 3:10 pm, "Farwa Bat" <fa...@mathworks.com> wrote:
> Thanks .... is this the only difference or there is some
> more.
>
> ..................................................."Peter Bone" <peterb...@hotmail.com> wrote in message
>
> <fm047a$af...@fred.mathworks.com>...
>
> > "Farwa Bat" <fa...@mathworks.com> wrote in message
> > <fm03vr$rj...@fred.mathworks.com>...
> > > Hi,in matlab for edge detection sobel,prewit,etc are
> > > available,using edge command.There is also filter2,and
> > > conv2 using fspecial command same sobel ,prewit are
> used.
> > > Why and When I shpuld use
>
> > > 1)edge command and find edges.
> > > 2)filter2 or conv2 for same classical filter
> > > (Sobel,Prewit...etc).
> > > Plz explain the difference in detail because most of
> these
> > > are used as edge detectors.
>
> > I believe the edge command returns a thresholded binary
> > image whereas the others just return the filtered image
> > without thresholding.