Path: news.mathworks.com!not-for-mail
From: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Help me to implement ths algo in MATLAB
Date: Sat, 5 Jan 2008 19:18:24 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 31
Message-ID: <flol60$qvs$1@fred.mathworks.com>
References: <flocgb$4pu$1@fred.mathworks.com>
Reply-To: "Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1199560704 27644 172.30.248.37 (5 Jan 2008 19:18:24 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 5 Jan 2008 19:18:24 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:444495


"Gracelin alshiya" <gracelin@mathworks.com> wrote in message <flocgb
$4pu$1@fred.mathworks.com>...
> Hi, 
>    I want to implement the following Equations in MATLAB 
> to find hori 
> & Vert Gradient. 
> 
> DH = | x(i , j-2) + x(i ,,j+2) - 2x(i, j) |  +  | x(i,,j-
> 1) - x(i,,j 
> +1) | 
> 
> DV = | x(i-2, j) + x(i+2,,j) - 2x(i, j) |  +  | x(i-1, j) -
>  x(i+1,,j) 
> | 
> 
> If(DH+35< DV) 
> 
>    G={ [ x(i,,j-1) + x(i,,j+1) ] /2 }    +   { [ 2x(i, j) -
>  x(i , j-2) 
> - x(i ,,j+2) ]/4} 
--------
  These expressions don't look like simple gradients to me.  Could you please 
explain them?

  Also you might explain what you mean by the double commas, the vertical 
lines, and the straight and curly brackets.  Most of these have very specific 
meanings in the Matlab language, but it looks as if you mean something very 
different by them.

Roger Stafford