コード例 #1
0
        Mat dst = new Mat();//空白输出图像
        private void BLToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Subwindows sub = new Subwindows();

            sub.ShowDialog();

            CvInvoke.BilateralFilter(image, dst, sub.size, 25 * 2.0, 25 / 2.0);
            resultpic.Image = dst;
        }
コード例 #2
0
        private void GaussToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Subwindows sub = new Subwindows();

            sub.ShowDialog();

            Mat dst = new Mat();
            //高斯滤波
            //src:输入图像
            //dst:输出图像
            //Size(5,5)模板大小,为奇数
            //x方向方差
            //Y方向方差
            Size size = new Size(sub.size, sub.size);

            CvInvoke.GaussianBlur(image, dst, size, 0, 0);
            this.resultpic.Image = dst;
        }