1
我想學習Aforge.net。我寫o代碼,它工作正常,但我想檢測我的形象只是紫色,但我無法找到它是如何。所以任何人都可以幫助我呢? 這裏是我的代碼C#aforge顏色檢測
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;
,並有我的源圖像
我的過濾器後,它是這個
所以我能做些什麼來隨便挑紫色的數字沒有其他的東西或只是紫色的東西在這張照片?