Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Help with unsharp!
Date: Thu, 20 Mar 2008 06:36:29 +0000 (UTC)
Organization: Konem Solutions
Lines: 22
Message-ID: <frt0ld$n4j$1@fred.mathworks.com>
References: <eecbf20d-d297-47b6-b95e-0a6dea9fd3e7@s12g2000prg.googlegroups.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205994989 23699 172.30.248.35 (20 Mar 2008 06:36:29 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 Mar 2008 06:36:29 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:458211


mrnickname <ankitnaker@gmail.com> wrote in message 
<eecbf20d-d297-47b6-b95e-
0a6dea9fd3e7@s12g2000prg.googlegroups.com>...
> Does anyone know how to create an unsharp mask without 
using the
> inbuilt filters?
> 
> Thanks in advance.

doc fspecial
doc imfilter
h = fspecial('unsharp',alpha);
ex:
h = fspecial('unsharp');
h =

   -0.1667   -0.6667   -0.1667
   -0.6667    4.3333   -0.6667
   -0.1667   -0.6667   -0.1667

HTH
Vihang