get_moment | R Documentation |
Extract an image moment from a square moments matrix using 0-based indexing.
get_moment(x, i = 0, j = 0)
gm(x, i = 0, j = 0)
x |
a moments matrix generated by of the |
i , j |
the 0-based indexes of the matrix |
x <- img_read(system.file("extdata", "plank/16199658.jpg", package="morphr"))
X_binary <- x < 1
m <- img_moments(X_binary, 3)
m
get_moment(m, 0,0)
gm(m, 0,0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.