How to get the average intensity value of the red color area in C# using EMGU CV library?
问题 Here I used this: pictureBox1.Image = My_Image.ToBitmap(); byte Red_val = My_Image.Data[0, 0, 2]; MessageBox.Show(Red_val.ToString()); Does this give the average intensity of the red area? How do I get the average intensity value? 回答1: Your second line: byte Red_val = My_Image.Data[0, 0, 2]; Will give you the Red Value of the Pixel on the 0th Row and 0th Column. If you want the average Red of the whole picture you should iterate through the Rows and Columns of it and sum up the Channel Data.