private void button7_Click(object sender, EventArgs e)
{
Mat src = CvInvoke.Imread(ImgPath, ImreadModes.Color);
CvInvoke.CvtColor(src, src, ColorConversion.Rgb2Gray);
MCvScalar scalar = CvInvoke.Mean(src);
//CvInvoke.cvReleaseImage(ref src);
label1.Text= scalar.V0.ToString();
}
C# emgu 计算图像的平均亮度
最新推荐文章于 2024-08-19 07:49:18 发布