title: Iterate within bins of an histogram using EmguCV (C#)
body: <p>i have been using EmguCV for some time by now, and it´s quite impressive the things we can do with. And i'm working in one particular project that consist in take one image of an webcam, and compare it with another stored image, and i'm willing achieve that by compare his respectives histograms. And this is going very well but i have this problem making me stuck for quite a while by now, the problem is</p>
  
  <hr>
  
  <p>this code snippet examines the layers of an image and normalizes and applies a threshold on the histogram</p>
  
  <pre><code>Image&lt;Gray, Byte&gt;[] channels = webcamFrame.Split();
  Image&lt;Gray, Byte&gt; ImgHue = channels[0];
  
  DenseHistogram histo1 = new DenseHistogram(255, new RangeF(0, 255));
  histo1.Calculate&lt;byte&gt;(new Image&lt;Gray, byte&gt;[] { ImgHue },false, null);
  histo1.Normalize(10);
  histo1.Threshold(0.5);
  </code></pre>
  
  <p>How can i iterate the bins of an <strong>DenseHistogram</strong> to compare it with another Histogram?</p>
  
  <p><img src="https://i.stack.imgur.com/8JVVM.png" alt="this code snippet generates this graph "><em>This Histogram is
   generated by the code above</em></p>