span> <span class="n">np</span><span class="o">.</span><span class="n">sqrt</span><span class="p">(</span><span class="n">ar</span><span class="o">**</span><span class="mi">2</span> <span class="o">+</span> <span class="n">br</span><span class="o">**</span><span class="mi">2</span><span class="p">)</span>
    <span class="c1">#hr = cam.hue_angle(at,bt,htype = &#39;rad&#39;)</span>
    
    <span class="c1"># Step 1:</span>
    <span class="n">Cavg</span> <span class="o">=</span> <span class="p">(</span><spa