'c# How to get the most repeated pixel values from an image
Bitmap image;
private void button4_Click(object sender, EventArgs e)
{
pictureBox1.Image = image;
Color co;
for (int x = 0; x < image.Width; x++)
{
for (int y = 0; y < image.Height; y++)
{
co = image.GetPixel(x, y);
}
}
}
I just want to get the most repeated pixel values from image.
and I going to change all the most repeated pixels value to zero
image.SetPixel(0,0,0)
Can I get some information?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|