kernel_flip_horizontal | R Documentation |
Flip the kernel vertically, horizontally, or both.
kernel_flip_horizontal(k) kernel_flip_vertical(k) kernel_flip_both(k)
k |
[matrix] The kernel. |
The flipped kernel, a matrix
.
kernel <- matrix(c( 1, 2, 3, 0, 1, 0, 2, 3, 4 ), nrow = 3, ncol = 3) kernel_flip_horizontal(kernel) kernel_flip_vertical(kernel) kernel_flip_both(kernel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.