【发布时间】:2013-05-06 07:49:26
【问题描述】:
我正在努力学习 Aforge.net。我写了代码,它工作正常,但我想在我的图像上检测到紫色,但我不知道它是怎么回事。所以任何人都可以帮助我吗? 这是我的代码
Bitmap resim = new Bitmap(pictureBox1.Image);
EuclideanColorFiltering filter = new EuclideanColorFiltering();
// set center color and radius
filter.CenterColor = new RGB(80,90,120);
filter.Radius = 40;
// apply the filter
filter.ApplyInPlace(resim);
pictureBox1.Image = resim;
还有我的源图片
经过我的过滤后就是这个
那么在这张图片中,我可以做些什么来选择没有其他东西的紫色数字或只选择紫色的东西?
【问题讨论】:
标签: c# image-processing colors bitmap