Create negative laplacian 3x3 kernel matrix.
Creates laplacian kernel matrix using
$(D_CODE I - image Laplacian(I) = [a/4, (1-a)/4, a/4] 4/(a+1) * |(1-a)/4 -1 (1-a)/4| [a/4, (1-a)/4, a/4] )
t { assert(laplacian().flattened == [0, 1, 0, 1, -4, 1, 0, 1, 0]
See Implementation
Create negative laplacian 3x3 kernel matrix.
Creates laplacian kernel matrix using
$(D_CODE I - image Laplacian(I) = [a/4, (1-a)/4, a/4] 4/(a+1) * |(1-a)/4 -1 (1-a)/4| [a/4, (1-a)/4, a/4] )