<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161583</link>
    <title>MATLAB Central Newsreader - Help me to implement ths algo in MATLAB</title>
    <description>Feed for thread: Help me to implement ths algo in MATLAB</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 05 Jan 2008 16:50:19 -0500</pubDate>
      <title>Help me to implement ths algo in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161583#408159</link>
      <author>Gracelin alshiya</author>
      <description>Hi, &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;I want to implement the following Equations in MATLAB &lt;br&gt;
to find hori &lt;br&gt;
&amp; Vert Gradient. &lt;br&gt;
&lt;br&gt;
DH = | x(i , j-2) + x(i ,,j+2) - 2x(i, j) |  +  | x(i,,j-&lt;br&gt;
1) - x(i,,j &lt;br&gt;
+1) | &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
DV = | x(i-2, j) + x(i+2,,j) - 2x(i, j) |  +  | x(i-1, j) -&lt;br&gt;
&amp;nbsp;x(i+1,,j) &lt;br&gt;
| &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
If(DH+35&amp;lt; DV) &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;G={ [ x(i,,j-1) + x(i,,j+1) ] /2 }    +   { [ 2x(i, j) -&lt;br&gt;
&amp;nbsp;x(i , j-2) &lt;br&gt;
- x(i ,,j+2) ]/4} &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 05 Jan 2008 19:18:24 -0500</pubDate>
      <title>Re: Help me to implement ths algo in MATLAB</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/161583#408168</link>
      <author>Roger Stafford</author>
      <description>"Gracelin alshiya" &amp;lt;gracelin@mathworks.com&amp;gt; wrote in message &amp;lt;flocgb&lt;br&gt;
$4pu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi, &lt;br&gt;
&amp;gt;    I want to implement the following Equations in MATLAB &lt;br&gt;
&amp;gt; to find hori &lt;br&gt;
&amp;gt; &amp; Vert Gradient. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DH = | x(i , j-2) + x(i ,,j+2) - 2x(i, j) |  +  | x(i,,j-&lt;br&gt;
&amp;gt; 1) - x(i,,j &lt;br&gt;
&amp;gt; +1) | &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DV = | x(i-2, j) + x(i+2,,j) - 2x(i, j) |  +  | x(i-1, j) -&lt;br&gt;
&amp;gt;  x(i+1,,j) &lt;br&gt;
&amp;gt; | &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If(DH+35&amp;lt; DV) &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;    G={ [ x(i,,j-1) + x(i,,j+1) ] /2 }    +   { [ 2x(i, j) -&lt;br&gt;
&amp;gt;  x(i , j-2) &lt;br&gt;
&amp;gt; - x(i ,,j+2) ]/4} &lt;br&gt;
--------&lt;br&gt;
&amp;nbsp;&amp;nbsp;These expressions don't look like simple gradients to me.  Could you please &lt;br&gt;
explain them?&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Also you might explain what you mean by the double commas, the vertical &lt;br&gt;
lines, and the straight and curly brackets.  Most of these have very specific &lt;br&gt;
meanings in the Matlab language, but it looks as if you mean something very &lt;br&gt;
different by them.&lt;br&gt;
&lt;br&gt;
Roger Stafford&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
