Description Usage Arguments Value Examples
View source: R/classify_image.R
calculate the percentage share of mineral phases of the area of an image.
1 | mcr_herd_minerals(x, lhs, rhs)
|
x |
an image loaded with |
lhs |
a vector with the left-hand-side position of peaks observed in |
rhs |
a vector with the right-hand-side position of peaks observed in |
A tibble
containing the number of pixels and their relative share of total image area per phase
1 2 3 | myimage <- mcr_load_image(system.file("extdata", "testim.png", package = "mincountr"))
mypeaks <- mcr_autoconstrain(myimage)
mcr_herd_minerals(myimage, mypeaks$x1, mypeaks$x2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.