示例#1
0
文件: Form1.cs 项目: worntunic/MMSHW
        private void HW_Filter_MeanThenSphere(object sender, EventArgs e)
        {
            int nWeight = GetIntInput();

            Console.WriteLine($"MeanThenSphere");
            m_Bitmap = StockFilters.MeanRemovalThenSphere(m_Bitmap, nWeight);
            this.Invalidate();
        }
示例#2
0
文件: Form1.cs 项目: worntunic/MMSHW
        private void HW_Filter_MeanThenSphereOffCenter(object sender, EventArgs e)
        {
            int        nWeight  = GetIntInput();
            int        xMid     = GetIntInput();
            int        yMid     = GetIntInput();
            PixelPoint midPoint = new PixelPoint(xMid, yMid);

            Console.WriteLine($"MeanThenSphereOffCenter{nWeight}:({xMid},{yMid})");
            MeanSphereConfig msConfig = new MeanSphereConfig(nWeight, PaddingType.Full, midPoint);

            m_Bitmap = StockFilters.MeanRemovalThenSphere(m_Bitmap, msConfig);
            this.Invalidate();
        }