摘要: Emgucv中有非常快捷的显示图像直方图的方法: HistogramviewerHistogrambox我今天只用了第一个,很简单。从别人的博客看这个可以自己改参数,但没成功。 这是我的代码和显示结果 Image histogramimage = new Image(imageBox1.Image.Bitmap);HistogramViewer.Show(histogramimage... 阅读全文
posted @ 2014-01-12 00:40 老笨wjr 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 直方图匹配的代码如下: //直方图匹配(规定)将原图像按照给定直方图匹配,这个函数中给定的直方图图片形式,第二个参数为给定的直方图 static public Image histogrammatching(Image input,Image MachingImage) { var result = input.CopyBlank(); int[] srcgraylevel = new int[256]; int[] dstgraylevel = new int[256]; by... 阅读全文
posted @ 2014-01-12 00:24 老笨wjr 阅读(320) 评论(0) 推荐(0) 编辑