Description Usage Arguments Examples
View source: R/classify_image.R
Plots a false color image using groups of brightness that can
either be determined from a graphical inspection of the result of
mcr_inspect_phases
or automaticalle determined by
mcr_herd_minerals
1 | mcr_inspect_assignment(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 |
1 2 3 4 5 6 7 8 9 10 11 12 | myimage <- mcr_load_image(system.file("extdata", "testim.png", package = "mincountr"))
# (Semi-)Automatic approach:
mypeaks <- mcr_autoconstrain(myimage)
mcr_inspect_assignment(myimage, mypeaks$x1, mypeaks$x2)
# Manual assignments of brightnessgrouplimits:
mcr_inspect_assignment(
myimage,
lhs = c(0, 0.3, 0.5, 0.92),
rhs = c(0.05, 0.45, 0.65, 1)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.