AForge 使用 HistogramBox 功能 (C#)


Bitmap img;
ImageStatistics statistics;
AForge.Math.Histogram mhistogram;

statistics = new ImageStatistics(img);
mhistogram = statistics.Gray;
histogram1.Values = mhistogram.Values;
histogram1.BackgroundImage = img.GetThumbnailImage(pictureBox1.Width, pictureBox1.Height, null, new IntPtr(0));

你可能感兴趣的:(AForge 使用 HistogramBox 功能 (C#))