Exemplo n.º 1
0
        //sharpen with 3x3, 5x5 and 7x7
        public void onMatrixSharpen()
        {
            Bitmap tmp1, tmp2, tmp3;

            Bitmap[] arr = new Bitmap[3];

            tmp1 = (Bitmap)model.getImage().Clone();
            tmp2 = (Bitmap)model.getImage().Clone();
            tmp3 = (Bitmap)model.getImage().Clone();


            arr[0] = Sharpen.FilterSharpen3(tmp1);

            arr[1] = Sharpen.FilterSharpen5(tmp2);

            arr[2] = Sharpen.FilterSharpen7(tmp3);

            model.setChannels(arr);
            view.showPictures(model.getImage(), model.getChannels());
        }