• 周五. 8月 19th, 2022

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

opencv在c#中的二值化阀值

admin

11月 28, 2021
        //阈值介绍
        //https://blog.csdn.net/weixin_41049188/article/details/91164555
        private void btnThreshod2_Click(object sender, EventArgs e)
        {
            var file = @"d:Screenshot2.png";
            var file6 = @"d:Screenshot6.png";
            Mat src = new Mat(file, ImreadModes.Grayscale);
            Mat result = src.Threshold(0, 255, ThresholdTypes.Otsu);

            //new Window("test", WindowMode.Normal, result);
            //Cv2.WaitKey(0);
            result.ImWrite(file6);
        }

发表回复

您的电子邮箱地址不会被公开。