Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Is gradient(I(x,y)) vector ?
Date: Fri, 8 Feb 2013 08:22:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <kf2cjg$41h$1@newscl01ah.mathworks.com>
References: <kf1vos$kil$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1360311728 4145 172.30.248.45 (8 Feb 2013 08:22:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 8 Feb 2013 08:22:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3799640
Xref: news.mathworks.com comp.soft-sys.matlab:788595

"Carl  S." wrote in message <kf1vos$kil$1@newscl01ah.mathworks.com>...
> Hi
> 
> When you compute the gradient of an image (8bit, grayscale), then is the result vector or scalar ?
> 
> I mean that does grad(I(x,y)) return vector values or scalar values ?

A vector.
grad(I(x,y)) = (dI(x,y)/dx, dI(x,y)/dy)

Best wishes
Torsten.