Example #1
0
        public static Matrix ConvolveSobelY(Matrix matrix)
        {
            Matrix sobelKernel = new Matrix(3, 3);

            sobelKernel[0, 0] = -1; sobelKernel[0, 1] = -2; sobelKernel[0, 2] = -1;
            sobelKernel[2, 0] = 1; sobelKernel[2, 1] = 2; sobelKernel[2, 2] = 1;
            return(MatrixUtils.Convolve(matrix, sobelKernel));
        }