示例#1
0
        private void 高斯高通滤波器160ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            checkPictureBox1();
            if (!valid)
            {
                return;
            }

            Bitmap bit = new Bitmap(pictureBox1.Image);

            bit = scale2SquareSize(bit);
            pictureBox2.Refresh();

            //锐化
            // pictureBox2.Image = GraphicClass.addPicture(GraphicClass.ifft2d(GraphicClass.gaussianHighpassFilter(bit, 160.0), bit.Width, bit.Height, true), bit, 1);
            pictureBox2.Image = GraphicClass.ifft2d(GraphicClass.gaussianHighpassFilter(bit, 160.0), bit.Width, bit.Height, true);
        }