"><strong>function [M,O] = gradientMag( I, channel, normRad, normConst, full ) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Compute gradient magnitude and orientation at each image location.

 If input image has k&gt;1 channels and channel=0, keeps gradient with
 maximum magnitude (over all channels) at each location. Otherwise if
 channel is between 1 and k computes gradient f