Ejemplo n.º 1
0
        private void HW_Filter_MeanThenSphere(object sender, EventArgs e)
        {
            int nWeight = GetIntInput();

            Console.WriteLine($"MeanThenSphere");
            m_Bitmap = StockFilters.MeanRemovalThenSphere(m_Bitmap, nWeight);
            this.Invalidate();
        }
Ejemplo n.º 2
0
        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();
        }