private void histogram(Emgu.CV.UI.HistogramBox box, Image<Gray, Single> img) { box.ClearHistogram(); box.GenerateHistograms(img, 256); box.Refresh(); }