
In this image black colour graph is in the white background. I want to get the pixel length between the two peak waves in the graph and the average height of the peak wave.(pixel count between top position and lowest position of the graph)
I'm stuck with the logic to implement this code.can anyone help me to implement this.
public void black(Bitmap bmp)
{
Color col;
for (int i = 0; i < bmp.Height; i++)
{
for (int j = 0; j < bmp.Width; j++)
{
col = bmp.GetPixel(j, i);
if (col.R == 0) //check whether black pixel
{
y = i; //assign black pixel x,y positions to a variable
x = j;
}
}
}
}
what is the best method to store these x,y coordination of each black pixels?( 2D arrays or array lists)
what is the logic we can apply to do this?

New Topic/Question
Reply




MultiQuote





|