Пример #1
0
        private void AddDefaultKernels_Edges_Small()
        {
            AddKernel(Convolutions.GetEdge_Sobel(true));
            AddKernel(Convolutions.GetEdge_Sobel(false));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Sobel(true), true));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Sobel(false), true));

            AddKernel(Convolutions.GetEdge_Prewitt(true));
            AddKernel(Convolutions.GetEdge_Prewitt(false));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Prewitt(true), true));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Prewitt(false), true));

            AddKernel(Convolutions.GetEdge_Compass(true));
            AddKernel(Convolutions.GetEdge_Compass(false));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Compass(true), true));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Compass(false), true));

            AddKernel(Convolutions.GetEdge_Kirsch(true));
            AddKernel(Convolutions.GetEdge_Kirsch(false));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Kirsch(true), true));
            AddKernel(Convolutions.Rotate_45(Convolutions.GetEdge_Kirsch(false), true));

            AddKernel(Convolutions.GetEdge_Laplacian(true));
            AddKernel(Convolutions.GetEdge_Laplacian(false));
        }